config: deal with whitespace at line start
This commit is contained in:
parent
be27cccf45
commit
cfc1f19ec6
|
@ -62,6 +62,11 @@ parse_config(char *path)
|
|||
continue;
|
||||
}
|
||||
|
||||
/* Assume there's some extra whitespace at the start and ignore it */
|
||||
if (state == ST_FILENAME && i == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
/* only run on the first whitespace */
|
||||
if (!ws) {
|
||||
DPRINTF(("i = %d\n", i));
|
||||
|
|
Loading…
Reference in a new issue