Skip to content

Commit

Permalink
Merge branch 'jk/index-pack-correct-depth-fix' into maint
Browse files Browse the repository at this point in the history
* jk/index-pack-correct-depth-fix:
  index-pack: always zero-initialize object_entry list
  • Loading branch information
Junio C Hamano committed Apr 4, 2013
2 parents 8ce0ab4 + 57165db commit 68447f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin/index-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,8 @@ static void conclude_pack(int fix_thin_pack, const char *curr_pack, unsigned cha
objects = xrealloc(objects,
(nr_objects + nr_unresolved + 1)
* sizeof(*objects));
memset(objects + nr_objects + 1, 0,
nr_unresolved * sizeof(*objects));
f = sha1fd(output_fd, curr_pack);
fix_unresolved_deltas(f, nr_unresolved);
strbuf_addf(&msg, _("completed with %d local objects"),
Expand Down

0 comments on commit 68447f0

Please sign in to comment.