mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
core: reinitialize config file pointer to NULL after an error on section creation
This commit is contained in:
@@ -398,6 +398,7 @@ script_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (script_config_file);
|
||||
script_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -489,6 +490,7 @@ script_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (script_config_file);
|
||||
script_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -712,6 +714,7 @@ script_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (script_config_file);
|
||||
script_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user