chiark / gitweb /
Properly report invalid quoted strings
[elogind.git] / src / shared / condition-util.c
index f88ddc19e29461e02d05b00639d8c7bbc9d789d1..b52dcc52f99adbf3fc27549f4a03dc54f1749e19 100644 (file)
@@ -114,6 +114,8 @@ bool condition_test_kernel_command_line(Condition *c) {
                 }
 
         }
+        if (!isempty(state))
+                log_warning("Trailing garbage and the end of kernel commandline, ignoring.");
 
         free(word);
         free(line);