Short-circuit evaluation meant that the path variable was never set if
plymouth:debug=file: was used. Switch the ordering around to fix this.
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;