mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 19:23:13 +02:00
core: reinitialize config file pointer to NULL after an error on section creation
This commit is contained in:
@@ -388,6 +388,7 @@ logger_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (logger_config_file);
|
||||
logger_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -420,6 +421,7 @@ logger_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (logger_config_file);
|
||||
logger_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -447,6 +449,7 @@ logger_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (logger_config_file);
|
||||
logger_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -547,6 +550,7 @@ logger_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (logger_config_file);
|
||||
logger_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -564,6 +568,7 @@ logger_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (logger_config_file);
|
||||
logger_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user