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

FreeSWITCH SVN mrene at freeswitch.org
Tue Jun 9 22:03:08 PDT 2009


Author: mrene
Date: Wed Jun 10 00:03:07 2009
New Revision: 13744

Log:
switch_xml_locate: don't parse the binding section at every iteration

Modified:
   freeswitch/trunk/src/switch_xml.c

Modified: freeswitch/trunk/src/switch_xml.c
==============================================================================
--- freeswitch/trunk/src/switch_xml.c	(original)
+++ freeswitch/trunk/src/switch_xml.c	Wed Jun 10 00:03:07 2009
@@ -1538,12 +1538,11 @@
 	switch_xml_t xml = NULL;
 	switch_xml_binding_t *binding;
 	uint8_t loops = 0;
+	switch_xml_section_t sections = BINDINGS ? switch_xml_parse_section_string(section) : 0;
 
 	switch_thread_rwlock_rdlock(B_RWLOCK);
 
 	for (binding = BINDINGS; binding; binding = binding->next) {
-		switch_xml_section_t sections = switch_xml_parse_section_string(section);
-
 		if (binding->sections && !(sections & binding->sections)) {
 			continue;
 		}



More information about the Freeswitch-svn mailing list