as reported by George Boudreau, make sure we properly skip blank lines

This commit is contained in:
Mike Frysinger 2008-01-23 18:48:26 +00:00
parent 46904bfbcc
commit 46ef46aefb

View File

@ -78,8 +78,12 @@ static void make_device(char *path, int delete)
val = strtok(vline, " \t");
vline = NULL;
} while (val && !*val);
if (!val)
break;
if (!val) {
if (field)
break;
else
goto next_line;
}
if (field == 0) {