Further fix the syntax by ignoring empty and whitespace-only lines.
Prompted by: Eugene Grosbein <eugen@kuzbass.ru>
This commit is contained in:
parent
fd018b2fba
commit
45fb378af9
@ -234,7 +234,7 @@ file(char *name)
|
||||
if ((p = strchr(line, '#')) != NULL)
|
||||
*p = '\0';
|
||||
for (p = line; isblank(*p); p++);
|
||||
if (*p == '\0')
|
||||
if (*p == '\n' || *p == '\0')
|
||||
continue;
|
||||
i = sscanf(p, "%49s %49s %49s %49s %49s", arg[0], arg[1],
|
||||
arg[2], arg[3], arg[4]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user