1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00

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:
Yu Watanabe 2019-06-27 03:00:22 +09:00
parent 33fe9e3fd0
commit 0ef69585d8

View File

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