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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user