fix segfault in nicklist

v1
Tony Olagbaiye 3 years ago
parent 278f2b3707
commit 3133302156
No known key found for this signature in database
GPG Key ID: 9E2FF3BDEBDFC910

@ -141,7 +141,7 @@ void user__nicklist_remove(struct t_account *account,
ptr_buffer = channel ? channel->buffer : account->buffer; 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); weechat_nicklist_remove_nick(ptr_buffer, ptr_nick);
} }

Loading…
Cancel
Save