Mercurial > pidgin
diff libpurple/protocols/irc/msgs.c @ 31802:c2a7fde6a566
Fix potential crash when NAMES is empty.
Fixes #14518
committer: Ethan Blanton <elb@pidgin.im>
author | jamie@lacewing-project.org |
---|---|
date | Tue, 16 Aug 2011 17:11:39 +0000 |
parents | 6001935e8c62 |
children | d2eb28c12d44 |
line wrap: on
line diff
--- a/libpurple/protocols/irc/msgs.c Tue Aug 16 15:08:57 2011 +0000 +++ b/libpurple/protocols/irc/msgs.c Tue Aug 16 17:11:39 2011 +0000 @@ -587,7 +587,7 @@ else purple_conv_im_write(PURPLE_CONV_IM(convo), "", msg, PURPLE_MESSAGE_SYSTEM|PURPLE_MESSAGE_NO_LOG, time(NULL)); g_free(msg); - } else { + } else if (cur != NULL) { GList *users = NULL; GList *flags = NULL;