pidgin: 014a34c7: jabber/jingle: Slightly less repitition.
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Fri Nov 27 02:20:51 EST 2009
-----------------------------------------------------------------
Revision: 014a34c771376f772793d9d3584bd557e483a621
Ancestor: d330e81020232653571a0d5b1f5c927bc148a6fe
Author: darkrain42 at pidgin.im
Date: 2009-11-26T19:45:21
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/014a34c771376f772793d9d3584bd557e483a621
Modified files:
libpurple/protocols/jabber/jingle/session.c
ChangeLog:
jabber/jingle: Slightly less repitition.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/session.c 0ed477ef2e6c3b80020687222aa19078bc8087fc
+++ libpurple/protocols/jabber/jingle/session.c 8375c7a66d153b47e5e87144b6b623c0f4dfdd9b
@@ -360,11 +360,15 @@ jingle_session_find_by_sid(JabberStream
JingleSession *
jingle_session_find_by_sid(JabberStream *js, const gchar *sid)
{
+ JingleSession *session = NULL;
+
+ if (js->sessions)
+ session = g_hash_table_lookup(js->sessions, sid);
+
purple_debug_info("jingle", "find_by_id %s\n", sid);
- purple_debug_info("jingle", "lookup: %p\n", (js->sessions) ?
- g_hash_table_lookup(js->sessions, sid) : NULL);
- return (JingleSession *) (js->sessions) ?
- g_hash_table_lookup(js->sessions, sid) : NULL;
+ purple_debug_info("jingle", "lookup: %p\n", session);
+
+ return session;
}
#if GLIB_CHECK_VERSION(2,4,0)
More information about the Commits
mailing list