mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 01:03:14 +02:00
core: reinitialize config file pointer to NULL after an error on section creation
This commit is contained in:
@@ -325,6 +325,7 @@ fset_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (fset_config_file);
|
||||
fset_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -451,6 +452,7 @@ fset_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (fset_config_file);
|
||||
fset_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -534,6 +536,7 @@ fset_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (fset_config_file);
|
||||
fset_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user