Skip to content

Commit

Permalink
Merge branch 'jc/maint-smart-http-race-upload-pack' into maint
Browse files Browse the repository at this point in the history
* jc/maint-smart-http-race-upload-pack:
  get_indexed_object can return NULL if nothing is in that slot; check for it
  • Loading branch information
Junio C Hamano committed Aug 24, 2011
2 parents b0b35a6 + 2a74532 commit c43a1be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions upload-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ static void check_non_tip(void)
namebuf[41] = '\n';
for (i = get_max_object_index(); 0 < i; ) {
o = get_indexed_object(--i);
if (!o)
continue;
if (!(o->flags & OUR_REF))
continue;
memcpy(namebuf + 1, sha1_to_hex(o->sha1), 40);
Expand Down

0 comments on commit c43a1be

Please sign in to comment.