Code

Pack-objects: properly initialize the depth value
[git.git] / builtin-pack-objects.c
index a43d6040cad5077c811aab4555ef4d32c504aab9..5e9d1fd86ce5ee18dcb9ace9595b925f7630b6e8 100644 (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)