summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2008-06-12 13:30:52 -0400
committerPeter Jones <pjones@vroomfondel.internal.datastacks.com>2008-06-12 13:30:52 -0400
commiteed091a216fe1c2b284c5fc0d7dc1c4ad6d59d5e (patch)
treeaa90b9ea62dfa317561c1760e56c587ea1c60a63 /src
parent6862500dcfdc5b7f532ef7271865557ca5631fc0 (diff)
downloadplymouth-eed091a216fe1c2b284c5fc0d7dc1c4ad6d59d5e.tar.gz
plymouth-eed091a216fe1c2b284c5fc0d7dc1c4ad6d59d5e.tar.xz
plymouth-eed091a216fe1c2b284c5fc0d7dc1c4ad6d59d5e.zip
Fix obviously broken code I committed yesterday.
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index d3510a9..b5ca0da 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;