diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-28 19:06:21 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-28 19:06:21 +0200 |
commit | f1fa143b21eaa5b4669c32513b2a66ad22a1e04c (patch) | |
tree | 6bd4ce692946be16c07ff524e5d8154c46ec55fd | |
parent | dcd872bc45be6a8352bfd461f35099eaf21be75b (diff) | |
download | weechat-f1fa143b21eaa5b4669c32513b2a66ad22a1e04c.zip |
core: check that parameter name is not NULL in function gui_nicklist_get_group_start
-rw-r--r-- | src/gui/gui-nicklist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/gui-nicklist.c b/src/gui/gui-nicklist.c index b1e1abe2d..2432cb049 100644 --- a/src/gui/gui-nicklist.c +++ b/src/gui/gui-nicklist.c @@ -803,6 +803,9 @@ gui_nicklist_get_group_start (const char *name) { const char *ptr_name; + if (!name) + return NULL; + ptr_name = name; while (isdigit ((unsigned char)ptr_name[0])) { |