pidgin: 8ac4cde6: jabber: Oops, crashing bad.

darkrain42 at pidgin.im darkrain42 at pidgin.im
Tue Feb 16 10:23:46 EST 2010


-----------------------------------------------------------------
Revision: 8ac4cde63cff22e9546dec112b7bdef365a04322
Ancestor: 96ab2472dc2e3ada07400297425020b717eec5ce
Author: darkrain42 at pidgin.im
Date: 2010-02-15T06:04:51
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8ac4cde63cff22e9546dec112b7bdef365a04322

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

ChangeLog: 

jabber: Oops, crashing bad.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jutil.c	2a409146fa1c89efcf647438ba1d40a6c6bd0be2
+++ libpurple/protocols/jabber/jutil.c	ac8e9a2ea499913f2e49ecbde2198dec90f0a63e
@@ -698,7 +698,7 @@ JabberBuddyState jabber_buddy_show_get_s
 	g_return_val_if_fail(id != NULL, JABBER_BUDDY_STATE_UNKNOWN);
 
 	for (i = 0; i < G_N_ELEMENTS(jabber_statuses); ++i)
-		if (g_str_equal(id, jabber_statuses[i].show))
+		if (jabber_statuses[i].show && g_str_equal(id, jabber_statuses[i].show))
 			return jabber_statuses[i].state;
 
 	purple_debug_warning("jabber", "Invalid value of presence <show/> "


More information about the Commits mailing list