Once in a while we get rid of this one. isblank() is missing on old
C libraries and only matches two values, so let's just replace it.
It was brought with this commit in 2.4:
0bf268e18 ("MINOR: server: Be more strict on the server-state line parsing")
It may be backported though it's really not important.
}
/* skip blank characters at the beginning of the line */
- while (isblank((unsigned char)*cur))
+ while (*cur == ' ' || *cur == '\t')
++cur;
/* ignore empty or commented lines */
break;
/* then skip leading spaces */
- while (*cur && isblank((unsigned char)*cur)) {
+ while (*cur && (*cur == ' ' || *cur == '\t')) {
++cur;
if (!*cur)
break;
params[arg++] = cur;
/* look for the end of the current field */
- while (*cur && !isblank((unsigned char)*cur)) {
+ while (*cur && *cur != ' ' && *cur != '\t') {
++cur;
if (!*cur)
break;