From 3133302156456470c27049c73af161bcdcc3cda5 Mon Sep 17 00:00:00 2001 From: Tony Olagbaiye Date: Thu, 12 Aug 2021 02:27:30 +0100 Subject: [PATCH] fix segfault in nicklist --- user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.c b/user.c index 5190f69..a2af4f2 100644 --- a/user.c +++ b/user.c @@ -141,7 +141,7 @@ void user__nicklist_remove(struct t_account *account, ptr_buffer = channel ? channel->buffer : account->buffer; - if ((ptr_nick = weechat_nicklist_search_nick(ptr_buffer, NULL, name))) + if (name && (ptr_nick = weechat_nicklist_search_nick(ptr_buffer, NULL, name))) weechat_nicklist_remove_nick(ptr_buffer, ptr_nick); }