summaryrefslogtreecommitdiff
path: root/src/plugins/fset
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-01-14 15:08:01 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-01-14 21:47:18 +0100
commitec169f535d97fc0c431df1e1c7e4d3172ad08a78 (patch)
treeb5ae4d952386c8e55ce574ac36b1876a3b70e428 /src/plugins/fset
parenteb0560812bd2f4ddb68353e7dc5427c60397463d (diff)
downloadweechat-ec169f535d97fc0c431df1e1c7e4d3172ad08a78.zip
core: reinitialize config file pointer to NULL after an error on section creation
Diffstat (limited to 'src/plugins/fset')
-rw-r--r--src/plugins/fset/fset-config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/fset/fset-config.c b/src/plugins/fset/fset-config.c
index 264f53666..2796e8383 100644
--- a/src/plugins/fset/fset-config.c
+++ b/src/plugins/fset/fset-config.c
@@ -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;
}