X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fconf-parser.c;h=b439d0ce7cac23e8a3c2b7ff0e63820f0d827696;hb=3059b1c1f414300332320f286bb458531394f0b0;hp=1cabc0d789b2d9ef17f9689490e81fb498f2e006;hpb=f60f22dfbb8cfa0eb55d1896db0e4c3f7d3cfacb;p=elogind.git diff --git a/src/conf-parser.c b/src/conf-parser.c index 1cabc0d78..b439d0ce7 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, '='))) {