summaryrefslogtreecommitdiff
path: root/builtin-pack-objects.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-07-13 02:27:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-13 03:11:41 (GMT)
commit7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea (patch)
tree0d5e4973fbc2fd0e9d1396e06f61bb875e8727dc /builtin-pack-objects.c
parent61c3f9086a733124258168f5c8e7437e3c56f3c3 (diff)
downloadgit-7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea.zip
git-7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea.tar.gz
git-7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea.tar.bz2
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 a43d604..5e9d1fd 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)