soc.2008.vv: d52eb77b: Remove warning.

maiku at soc.pidgin.im maiku at soc.pidgin.im
Fri Aug 15 01:51:14 EDT 2008


-----------------------------------------------------------------
Revision: d52eb77bab3a6ac86490556203955b1b400159c9
Ancestor: 3ac0903e858ae91b4f0278f24d38cdf9c1fb1ce9
Author: maiku at soc.pidgin.im
Date: 2008-08-14T23:23:41
Branch: im.pidgin.soc.2008.vv
URL: http://d.pidgin.im/viewmtn/revision/info/d52eb77bab3a6ac86490556203955b1b400159c9

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

ChangeLog: 

Remove warning.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle.c	f4ea6492356baf0a141a711acd5c03c443357ffb
+++ libpurple/protocols/jabber/jingle.c	e0ca3a761ac99b1e499175f72a1cf57158dfa373
@@ -277,7 +277,8 @@ jabber_jingle_session_find_by_jid(Jabber
 static JingleSession *
 jabber_jingle_session_find_by_jid(JabberStream *js, const char *jid)
 {
-	GList *values = g_hash_table_get_values(js->sessions);
+	GList *values = (js->sessions) ? 
+			g_hash_table_get_values(js->sessions) : NULL;
 	gboolean use_bare = strchr(jid, '/') == NULL;
 
 	for (; values; values = g_list_delete_link(values, values)) {


More information about the Commits mailing list