[Freeswitch-svn] [commit] r5112 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Wed May 9 11:49:01 EDT 2007


Author: mikej
Date: Wed May  9 11:49:01 2007
New Revision: 5112

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

Log:
make sure to initialize gateway->next

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Wed May  9 11:49:01 2007
@@ -489,7 +489,7 @@
 			gateway->profile = profile;
 			gateway->name = switch_core_strdup(gateway->pool, name);
 			gateway->freq = 0;
-
+			gateway->next = NULL;
 
 			for (param = switch_xml_child(gateway_tag, "param"); param; param = param->next) {
 				char *var = (char *) switch_xml_attr_soft(param, "name");



More information about the Freeswitch-svn mailing list