Skip to content

Commit

Permalink
Pack-objects: properly initialize the depth value
Browse files Browse the repository at this point in the history
Commit 5a235b5 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>
  • Loading branch information
Nicolas Pitre authored and Junio C Hamano committed Jul 13, 2007
1 parent 61c3f90 commit 7d7baa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin-pack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d7baa5

Please sign in to comment.