conf-parser: fix continuation handling
Before this commit, empty lines cannot break continuation.
The bug was introduced by 9adbfeb38a
.
Closes #12883.
This commit is contained in:
parent
33fe9e3fd0
commit
0ef69585d8
|
@ -322,7 +322,8 @@ int config_parse(const char *unit,
|
|||
return r;
|
||||
}
|
||||
|
||||
if (strchr(COMMENTS, *skip_leading_chars(buf, WHITESPACE)))
|
||||
l = skip_leading_chars(buf, WHITESPACE);
|
||||
if (*l != '\0' && strchr(COMMENTS, *l))
|
||||
continue;
|
||||
|
||||
l = buf;
|
||||
|
|
Loading…
Reference in a new issue