diff options
author | Nicolas Pitre <nico@cam.org> | 2007-07-12 22:27:12 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-12 20:11:41 -0700 |
commit | 7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea (patch) | |
tree | 0d5e4973fbc2fd0e9d1396e06f61bb875e8727dc /builtin-pack-objects.c | |
parent | 61c3f9086a733124258168f5c8e7437e3c56f3c3 (diff) | |
download | git-7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea.tar.gz |
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.c | 1 |
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) |