[telepathy-gabble/master] Short-circuit adding no candidates

Sjoerd Simons sjoerd.simons at collabora.co.uk
Tue Dec 29 05:34:41 PST 2009


---
 src/jingle-content.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/jingle-content.c b/src/jingle-content.c
index 6093ab2..d32eb1c 100644
--- a/src/jingle-content.c
+++ b/src/jingle-content.c
@@ -742,6 +742,9 @@ gabble_jingle_content_add_candidates (GabbleJingleContent *self, GList *li)
 
   DEBUG ("called");
 
+  if (li == NULL)
+    return;
+
   gabble_jingle_transport_iface_new_local_candidates (priv->transport, li);
 
   if (!priv->have_local_candidates)
-- 
1.5.6.5




More information about the telepathy-commits mailing list