[server] fix Clang compiler warning to remove extraneous var increment
utils.c:217:13: warning: variable 'i' is incremented both in the loop header and in the loop
body [-Wfor-loop-analysis]
i++;
^
utils.c:213:34: note: incremented here
for (i=0; i<strlen(str); i++)
This commit is contained in:
parent
02542a025e
commit
201d065f52
@ -214,7 +214,6 @@ is_digits(const char * const str)
|
||||
{
|
||||
if(!isdigit((int)(unsigned char)str[i]))
|
||||
return 0;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user