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>
This commit is contained in:
Nicolas Pitre 2007-07-12 22:27:12 -04:00 committed by Junio C Hamano
parent 61c3f9086a
commit 7d7baa5e15

View File

@ -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)