[Freeswitch-svn] [commit] r9364 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Mon Aug 25 12:40:40 EDT 2008


Author: anthm
Date: Mon Aug 25 12:40:39 2008
New Revision: 9364

Modified:
   freeswitch/trunk/src/switch_core.c

Log:
fix FSCORE-176

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Mon Aug 25 12:40:39 2008
@@ -1154,11 +1154,9 @@
 			for (param = switch_xml_child(settings, "variable"); param; param = param->next) {
 				const char *var = switch_xml_attr_soft(param, "name");
 				const char *val = switch_xml_attr_soft(param, "value");
-				char *varr = NULL, *vall = NULL;
-
-				varr = switch_core_strdup(runtime.memory_pool, var);
-				vall = switch_core_strdup(runtime.memory_pool, val);
-				switch_core_hash_insert(runtime.global_vars, varr, vall);
+				if (var && val) {
+					switch_core_set_variable(var, val);
+				}
 			}
 		}
 



More information about the Freeswitch-svn mailing list