@matheusbsbs / matheus-bagliano / commits / 694500edbd
Fork 0

sha1_name.c: avoid compilation warnings.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Oct 23, 2006 at 21:15 UTC 694500edbd51baef365c588986abe41f01acf0de
1 file changed +1 -1
sha1_name.c
+1 -1
@@ -258,7 +258,7 @@ static int get_sha1_basic(const char *str, int len, unsigned char *sha1)
258 return 0;
259
260 /* basic@{time or number} format to query ref-log */
261 - reflog_len = 0;
261 + reflog_len = at = 0;
262 if (str[len-1] == '}') {
263 for (at = 1; at < len - 1; at++) {
264 if (str[at] == '@' && str[at+1] == '{') {