n is in fact unused, and is later shadowed.
date.c::approxidate_alpha() counts the number of alphabets while moving the pointer but does not use the count. Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
dd305c8462
commit
5df7dbbae4
6
date.c
6
date.c
@ -584,10 +584,10 @@ static const char *approxidate_alpha(const char *date, struct tm *tm, int *num)
|
|||||||
const struct typelen *tl;
|
const struct typelen *tl;
|
||||||
const struct special *s;
|
const struct special *s;
|
||||||
const char *end = date;
|
const char *end = date;
|
||||||
int n = 1, i;
|
int i;
|
||||||
|
|
||||||
while (isalpha(*++end))
|
while (isalpha(*++end));
|
||||||
n++;
|
;
|
||||||
|
|
||||||
for (i = 0; i < 12; i++) {
|
for (i = 0; i < 12; i++) {
|
||||||
int match = match_string(date, month_names[i]);
|
int match = match_string(date, month_names[i]);
|
||||||
|
Reference in New Issue
Block a user