chiark / gitweb /
systemctl: use isolate when called as telinit for a runlevel
[elogind.git] / src / conf-parser.c
index 1cabc0d789b2d9ef17f9689490e81fb498f2e006..438b4cc3d57a7e4e7b59671dd283fdf03a952f45 100644 (file)
@@ -1,4 +1,4 @@
-/*-*- Mode: C; c-basic-offset: 8 -*-*/
+/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
 /***
   This file is part of systemd.
@@ -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, '='))) {