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:
@@ -450,6 +450,7 @@ weechat_aspell_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (weechat_aspell_config_file);
|
||||
weechat_aspell_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -493,6 +494,7 @@ weechat_aspell_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (weechat_aspell_config_file);
|
||||
weechat_aspell_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -568,6 +570,7 @@ weechat_aspell_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (weechat_aspell_config_file);
|
||||
weechat_aspell_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -585,6 +588,7 @@ weechat_aspell_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (weechat_aspell_config_file);
|
||||
weechat_aspell_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -619,6 +623,7 @@ weechat_aspell_config_init ()
|
||||
if (!ptr_section)
|
||||
{
|
||||
weechat_config_free (weechat_aspell_config_file);
|
||||
weechat_aspell_config_file = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user