Skip to content

Commit

Permalink
n is in fact unused, and is later shadowed.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pierre Habouzit authored and Junio C Hamano committed Aug 24, 2006
1 parent dd305c8 commit 5df7dbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions date.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,10 @@ static const char *approxidate_alpha(const char *date, struct tm *tm, int *num)
const struct typelen *tl;
const struct special *s;
const char *end = date;
int n = 1, i;
int i;

while (isalpha(*++end))
n++;
while (isalpha(*++end));
;

for (i = 0; i < 12; i++) {
int match = match_string(date, month_names[i]);
Expand Down

0 comments on commit 5df7dbb

Please sign in to comment.