mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-05 07:38:15 +02:00
[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:
parent
d75e8cf26e
commit
77fe2c0e11
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue