1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 21:06:38 +02:00

Fix crash when searching nick in buffer without nicklist (function nicklist_search_nick)

This commit is contained in:
Sebastien Helleu
2009-12-06 23:35:46 +01:00
parent 0baae4237c
commit a498402e78
+3
View File
@@ -287,6 +287,9 @@ gui_nicklist_search_nick (struct t_gui_buffer *buffer,
if (!buffer && !from_group)
return NULL;
if (!from_group && !buffer->nicklist_root)
return NULL;
for (ptr_nick = (from_group) ? from_group->nicks : buffer->nicklist_root->nicks;
ptr_nick; ptr_nick = ptr_nick->next_nick)
{