1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

fset: ensure option_name is not NULL before comparing it

This commit is contained in:
Sébastien Helleu
2018-05-17 21:51:09 +02:00
parent a62fb0dd36
commit b0fc579955
+1
View File
@@ -1432,6 +1432,7 @@ fset_option_config_changed (const char *option_name)
ptr_fset_option = weechat_arraylist_get (fset_options, line);
if (ptr_fset_option
&& ptr_fset_option->parent_name
&& option_name
&& (strcmp (ptr_fset_option->parent_name, option_name) == 0))
{
ptr_option = weechat_config_get (ptr_fset_option->name);