pidgin: e0e8d94a: jabber: Avoid crashing if a buddy has a ...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Thu Mar 4 11:35:49 EST 2010


-----------------------------------------------------------------
Revision: e0e8d94ac49f3a11e118889f779abfce4066da20
Ancestor: 1878471e50f9b85a1a87c962ae6c9eb1866be775
Author: darkrain42 at pidgin.im
Date: 2010-03-04T16:31:10
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e0e8d94ac49f3a11e118889f779abfce4066da20

Modified files:
        libpurple/protocols/jabber/buddy.c

ChangeLog: 

jabber: Avoid crashing if a buddy has a NULL resource.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/buddy.c	b1ae9210a4d94c3be6fb7ea4e31ef2de694e7a79
+++ libpurple/protocols/jabber/buddy.c	e3293d5f903f1046066b48ed47257c83f53a520a
@@ -218,7 +218,7 @@ JabberBuddyResource *jabber_buddy_find_r
 	for (l = jb->resources; l; l = l->next)
 	{
 		JabberBuddyResource *jbr = l->data;
-		if (g_str_equal(resource, jbr->name))
+		if (jbr->name && g_str_equal(resource, jbr->name))
 			return jbr;
 	}
 


More information about the Commits mailing list