diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-09-17 18:56:35 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-09-17 18:56:35 +0200 |
commit | a00edcf50ec77b941450e7a9670bb378904eef62 (patch) | |
tree | 78e091982ebf3000fb49bef5e0700b3ad495a372 /src/gui/gui-filter.c | |
parent | be7380f9b3335d73f7ef646567ab72df408f8329 (diff) | |
download | weechat-a00edcf50ec77b941450e7a9670bb378904eef62.zip |
tests: add tests on filter functions
Diffstat (limited to 'src/gui/gui-filter.c')
-rw-r--r-- | src/gui/gui-filter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/gui-filter.c b/src/gui/gui-filter.c index 3b42eb66e..242ea58da 100644 --- a/src/gui/gui-filter.c +++ b/src/gui/gui-filter.c @@ -251,6 +251,9 @@ gui_filter_search_by_name (const char *name) { struct t_gui_filter *ptr_filter; + if (!name) + return NULL; + for (ptr_filter = gui_filters; ptr_filter; ptr_filter = ptr_filter->next_filter) { |