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