From: Ray Strode Date: Mon, 24 Aug 2009 17:44:48 +0000 (-0400) Subject: [main] initialize debug_buffer_path when --debug but no plymouth:debug X-Git-Tag: 0.7.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77fe2c0e112c9b3dc6a266af0b449aa24cfe5a8a;p=thirdparty%2Fplymouth.git [main] initialize debug_buffer_path when --debug but no plymouth:debug Before it wasn't ever getting set, causing crashes with --debug in some cases. --- diff --git a/src/main.c b/src/main.c index 3ede8eff..d3f8ebb2 100644 --- a/src/main.c +++ b/src/main.c @@ -1144,9 +1144,6 @@ check_verbosity (state_t *state) debug_buffer_path = path; } - if (debug_buffer_path == NULL) - debug_buffer_path = strdup (PLYMOUTH_LOG_DIRECTORY "/plymouth-debug.log"); - if (debug_buffer != NULL) debug_buffer = ply_buffer_new (); @@ -1160,6 +1157,9 @@ check_verbosity (state_t *state) if (debug_buffer != NULL) { + if (debug_buffer_path == NULL) + debug_buffer_path = strdup (PLYMOUTH_LOG_DIRECTORY "/plymouth-debug.log"); + ply_logger_add_filter (ply_logger_get_error_default (), (ply_logger_filter_handler_t) on_error_message,