[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.
This commit is contained in:
Ray Strode 2009-08-24 13:44:48 -04:00
parent d75e8cf26e
commit 77fe2c0e11

View file

@ -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,