]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Fix obviously broken code I committed yesterday.
authorPeter Jones <pjones@redhat.com>
Thu, 12 Jun 2008 17:30:52 +0000 (13:30 -0400)
committerPeter Jones <pjones@vroomfondel.internal.datastacks.com>
Thu, 12 Jun 2008 17:30:52 +0000 (13:30 -0400)
src/main.c

index d3510a9e956445043c2845a741078075e3363a58..b5ca0da5c27ac60e8f104c6e04322e68152e21a0 100644 (file)
@@ -349,9 +349,9 @@ plymouth_should_be_running (state_t *state)
   for (i = 0; strings[i] != NULL; i++)
     {
       int cmp;
-      if (strings[0] == '^')
-          cmp = strncmp(state->kernel_command_line, strings+1,
-                        strlen(strings+1)) == 0;
+      if (strings[i][0] == '^')
+          cmp = strncmp(state->kernel_command_line, strings[i]+1,
+                        strlen(strings[i]+1)) == 0;
       else
           cmp = strstr (state->kernel_command_line, strings[i]) != NULL;