@matheusbsbs / matheus-bagliano / commits / 7d7baa5e15
Fork 0

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>

Nicolas Pitre committed Jul 12, 2007 at 22:27 UTC 7d7baa5e15b9ad6768d782d9bae5badc4e51d4ea
1 file changed +1
builtin-pack-objects.c
+1
@@ -1431,6 +1431,7 @@ static void free_unpacked(struct unpacked *n)
1431 window_memory_usage -= n->entry->size;
1432 }
1433 n->entry = NULL;
1434 + n->depth = 0;
1435 }
1436
1437 static void find_deltas(struct object_entry **list, int window, int depth)