summaryrefslogtreecommitdiffstats
path: root/builtin-pack-objects.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-07-13 04:27:12 +0200
committerJunio C Hamano <gitster@pobox.com>2007-07-13 05:11:41 +0200
commit7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea (patch)
tree0d5e4973fbc2fd0e9d1396e06f61bb875e8727dc /builtin-pack-objects.c
parentGIT v1.5.3-rc1 (diff)
downloadgit-7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea.tar.xz
git-7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea.zip
Pack-objects: properly initialize the depth value
Commit 5a235b5e was missing this little detail. Otherwise your pack will explode. Problem noted by Brian Downing. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-pack-objects.c')
-rw-r--r--builtin-pack-objects.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index a43d6040ca..5e9d1fd86c 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -1431,6 +1431,7 @@ static void free_unpacked(struct unpacked *n)
window_memory_usage -= n->entry->size;
}
n->entry = NULL;
+ n->depth = 0;
}
static void find_deltas(struct object_entry **list, int window, int depth)