diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-14 15:08:01 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-14 21:47:18 +0100 |
commit | ec169f535d97fc0c431df1e1c7e4d3172ad08a78 (patch) | |
tree | b5ae4d952386c8e55ce574ac36b1876a3b70e428 /src/plugins/aspell/weechat-aspell-config.c | |
parent | eb0560812bd2f4ddb68353e7dc5427c60397463d (diff) | |
download | weechat-ec169f535d97fc0c431df1e1c7e4d3172ad08a78.zip |
core: reinitialize config file pointer to NULL after an error on section creation
Diffstat (limited to 'src/plugins/aspell/weechat-aspell-config.c')
-rw-r--r-- | src/plugins/aspell/weechat-aspell-config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/aspell/weechat-aspell-config.c b/src/plugins/aspell/weechat-aspell-config.c index 602d22201..1899bb09b 100644 --- a/src/plugins/aspell/weechat-aspell-config.c +++ b/src/plugins/aspell/weechat-aspell-config.c @@ -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; } |