conf-parser: accept whitespaces before comments

Closes #11343.
This commit is contained in:
Yu Watanabe
2019-01-08 14:05:15 +09:00
parent 71b21730d4
commit b41dd0d2db
+1 -1
View File
@@ -321,7 +321,7 @@ int config_parse(const char *unit,
return r;
}
if (strchr(COMMENTS, *buf))
if (strchr(COMMENTS, *skip_leading_chars(buf, WHITESPACE)))
continue;
l = buf;