diff options
Diffstat (limited to 'src/plugins/fset')
-rw-r--r-- | src/plugins/fset/fset-option.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/fset/fset-option.c b/src/plugins/fset/fset-option.c index 748bce747..e6d9c0e86 100644 --- a/src/plugins/fset/fset-option.c +++ b/src/plugins/fset/fset-option.c @@ -102,6 +102,9 @@ fset_option_search_by_name (const char *name, int *line) if (line) *line = -1; + if (!name) + return NULL; + num_options = weechat_arraylist_size (fset_options); for (i = 0; i < num_options; i++) { |