Further fix the syntax by ignoring empty and whitespace-only lines.

Prompted by:	Eugene Grosbein <eugen@kuzbass.ru>
This commit is contained in:
ru 2003-03-05 15:53:18 +00:00
parent fd018b2fba
commit 45fb378af9

View File

@ -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]);