chiark / gitweb /
a couple of fixes to make llvm-analyze quiet
[elogind.git] / src / conf-parser.c
index 135b175c09a5dd4a5d939a34c41bf01b1121f39a..a9b01135e6a1dfc7a3bcbd335b6d59c1a21cb7be 100644 (file)
@@ -219,8 +219,13 @@ static int parse_line(
                 return 0;
         }
 
-        if (sections && !*section)
+        if (sections && !*section) {
+
+                if (!relaxed)
+                        log_info("[%s:%u] Assignment outside of section. Ignoring.", filename, line);
+
                 return 0;
+        }
 
         e = strchr(l, '=');
         if (!e) {