]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/condition.c
tree-wide: make invocations of extract_first_word more uniform (#4627)
[thirdparty/systemd.git] / src / shared / condition.c
index 8bd6a51a99b6aaece77953a13829eb7732f8e936..525e65aedfef6c610f761bc04185b0c34c738def 100644 (file)
@@ -111,9 +111,8 @@ static int condition_test_kernel_command_line(Condition *c) {
                 return r;
 
         equal = !!strchr(c->parameter, '=');
-        p = line;
 
-        for (;;) {
+        for (p = line;;) {
                 _cleanup_free_ char *word = NULL;
                 bool found;