jingle/register.c
changeset 76 42b487daee7d
parent 72 277778138b4b
child 127 02dde03e219b
--- a/jingle/register.c	Mon Jul 26 02:56:15 2010 +0200
+++ b/jingle/register.c	Mon Jul 26 11:41:52 2010 +0200
@@ -112,8 +112,8 @@
 {
   AppHandlerEntry *app = jingle_find_app(appxmlns);
   GSList *entry;
-  TransportHandlerEntry *thistransport, *besttransport;
-  JingleTransportPriority bestprio;
+  TransportHandlerEntry *thistransport, *besttransport = NULL;
+  JingleTransportPriority bestprio = JINGLE_TRANSPORT_NONE;
   JingleTransportType requestedtype;
 
   if (entry == NULL)
@@ -138,7 +138,7 @@
   if (forbid != NULL)
     *forbid = g_slist_append(*forbid, besttransport->xmlns);
   
-  return besttransport->funcs;
+  return besttransport != NULL?besttransport->funcs:NULL;
 }
 
 /**