maiku.vv: 7d6b463f: Silence warning.
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Thu Nov 6 22:45:32 EST 2008
-----------------------------------------------------------------
Revision: 7d6b463ffa8e063c9f04f46e4e627d553b308e49
Ancestor: 5dd20dcf495f5a0951f99516112289a1e931b5f2
Author: maiku at soc.pidgin.im
Date: 2008-11-07T03:30:02
Branch: im.pidgin.maiku.vv
URL: http://d.pidgin.im/viewmtn/revision/info/7d6b463ffa8e063c9f04f46e4e627d553b308e49
Modified files:
libpurple/protocols/jabber/jingle/rawudp.c
ChangeLog:
Silence warning.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/rawudp.c dd8acb49d35cbd44ae06160f64b598959c1c0348
+++ libpurple/protocols/jabber/jingle/rawudp.c 746c1c1f1f1485a6f0595aae1ecdcfc81d130e2b
@@ -266,7 +266,7 @@ jingle_rawudp_parse_internal(xmlnode *ra
JingleTransport *transport = parent_class->parse(rawudp);
JingleRawUdpPrivate *priv = JINGLE_RAWUDP_GET_PRIVATE(transport);
xmlnode *candidate = xmlnode_get_child(rawudp, "candidate");
- JingleRawUdpCandidate *rawudp_candidate;
+ JingleRawUdpCandidate *rawudp_candidate = NULL;
for (; candidate; candidate = xmlnode_get_next_twin(candidate)) {
rawudp_candidate = jingle_rawudp_candidate_new(
@@ -278,7 +278,8 @@ jingle_rawudp_parse_internal(xmlnode *ra
jingle_rawudp_add_remote_candidate(JINGLE_RAWUDP(transport), rawudp_candidate);
}
- if (g_list_length(priv->remote_candidates) == 1) {
+ if (rawudp_candidate != NULL &&
+ g_list_length(priv->remote_candidates) == 1) {
/* manufacture rtcp candidate */
rawudp_candidate = g_boxed_copy(JINGLE_TYPE_RAWUDP_CANDIDATE, rawudp_candidate);
rawudp_candidate->component = 2;
More information about the Commits
mailing list