Skip to content

Commit

Permalink
sha1_name.c: avoid compilation warnings.
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 Oct 24, 2006
1 parent ab2a1a3 commit 694500e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sha1_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ static int get_sha1_basic(const char *str, int len, unsigned char *sha1)
return 0;

/* basic@{time or number} format to query ref-log */
reflog_len = 0;
reflog_len = at = 0;
if (str[len-1] == '}') {
for (at = 1; at < len - 1; at++) {
if (str[at] == '@' && str[at+1] == '{') {
Expand Down

0 comments on commit 694500e

Please sign in to comment.