diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/conf-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf-parser.c b/src/conf-parser.c index 1cabc0d789..b439d0ce7c 100644 --- a/src/conf-parser.c +++ b/src/conf-parser.c @@ -122,7 +122,7 @@ static int parse_line(const char *filename, unsigned line, char **section, const return 0; } - if (sections && !strv_contains((char**) sections, *section)) + if (sections && (!*section || !strv_contains((char**) sections, *section))) return 0; if (!(e = strchr(l, '='))) { |