mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 23:06:38 +02:00
core: reinitialize config file pointer to NULL after an error on section creation
This commit is contained in:
@@ -109,6 +109,7 @@ exec_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (exec_config_file);
|
||||
exec_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -141,6 +142,7 @@ exec_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (exec_config_file);
|
||||
exec_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user