changeset 25722:b5ba1ab6ebdc

Remove warning.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Thu, 14 Aug 2008 23:23:41 +0000
parents aaf11cffe2b2
children 1d9a2296d5d2
files libpurple/protocols/jabber/jingle.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jingle.c	Thu Aug 14 23:14:56 2008 +0000
+++ b/libpurple/protocols/jabber/jingle.c	Thu Aug 14 23:23:41 2008 +0000
@@ -277,7 +277,8 @@
 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)) {