From: Peter Jones Date: Thu, 12 Jun 2008 17:30:52 +0000 (-0400) Subject: Fix obviously broken code I committed yesterday. X-Git-Tag: 0.3.2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eed091a216fe1c2b284c5fc0d7dc1c4ad6d59d5e;p=thirdparty%2Fplymouth.git Fix obviously broken code I committed yesterday. --- diff --git a/src/main.c b/src/main.c index d3510a9e..b5ca0da5 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;