diff options
Diffstat (limited to 'src/plugins/fset/fset-info.c')
-rw-r--r-- | src/plugins/fset/fset-info.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/fset/fset-info.c b/src/plugins/fset/fset-info.c index bc6dce156..94ad5bcc3 100644 --- a/src/plugins/fset/fset-info.c +++ b/src/plugins/fset/fset-info.c @@ -71,8 +71,10 @@ fset_info_infolist_fset_option_cb (const void *pointer, void *data, for (i = 0; i < num_options; i++) { ptr_fset_option = weechat_arraylist_get (fset_options, i); - if (!arguments || !arguments[0] - || weechat_string_match (ptr_fset_option->name, arguments, 0)) + if (ptr_fset_option + && (!arguments || !arguments[0] + || weechat_string_match (ptr_fset_option->name, + arguments, 0))) { if (!fset_option_add_to_infolist (ptr_infolist, ptr_fset_option)) { |