From f1fa143b21eaa5b4669c32513b2a66ad22a1e04c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 28 Apr 2024 19:06:21 +0200 Subject: core: check that parameter name is not NULL in function gui_nicklist_get_group_start --- src/gui/gui-nicklist.c | 3 +++ 1 file changed, 3 insertions(+) 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])) { -- cgit v1.2.3