config: deal with whitespace at line start

This commit is contained in:
snow flurry 2020-11-16 22:56:40 -08:00
parent be27cccf45
commit cfc1f19ec6

View file

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