[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:
Michael Rash 2018-08-16 22:55:34 -04:00
parent 02542a025e
commit 201d065f52

View File

@ -214,7 +214,6 @@ is_digits(const char * const str)
{
if(!isdigit((int)(unsigned char)str[i]))
return 0;
i++;
}
}
return 1;