Skip to content

Commit

Permalink
get_sha1() - fix infinite loop on nonexistent stage.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed May 8, 2006
1 parent 73b0e5a commit e7cef45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sha1_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ int get_sha1(const char *name, unsigned char *sha1)
memcpy(sha1, ce->sha1, 20);
return 0;
}
pos++;
}
return -1;
}
Expand Down

0 comments on commit e7cef45

Please sign in to comment.