]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Fix parsing of plymouth:debug=file:
authorColin Watson <cjwatson@ubuntu.com>
Wed, 28 Apr 2010 12:27:59 +0000 (13:27 +0100)
committerRay Strode <rstrode@redhat.com>
Mon, 3 May 2010 14:00:38 +0000 (10:00 -0400)
Short-circuit evaluation meant that the path variable was never set if
plymouth:debug=file: was used.  Switch the ordering around to fix this.

src/main.c

index 03a8a6a3ed53504d26aded6caf4c8e21845d6652..9bd66a037bc4709b27eacab777d2afe4957176f3 100644 (file)
@@ -1541,8 +1541,8 @@ check_verbosity (state_t *state)
   path = NULL;
   if ((strstr (state->kernel_command_line, " plymouth:debug ") != NULL)
      || (strstr (state->kernel_command_line, "plymouth:debug ") != NULL)
-     || (strstr (state->kernel_command_line, " plymouth:debug") != NULL)
-     || (path = strstr (state->kernel_command_line, " plymouth:debug=file:")) != NULL)
+     || (path = strstr (state->kernel_command_line, " plymouth:debug=file:")) != NULL
+     || (strstr (state->kernel_command_line, " plymouth:debug") != NULL))
     {
 #ifdef LOG_TO_DEBUG_FILE
       int fd;