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

FreeSWITCH SVN mrene at freeswitch.org
Fri Mar 13 08:13:18 PDT 2009


Author: mrene
Date: Fri Mar 13 10:13:18 2009
New Revision: 12591

Log:
tweak

Modified:
   freeswitch/trunk/src/switch_xml_config.c

Modified: freeswitch/trunk/src/switch_xml_config.c
==============================================================================
--- freeswitch/trunk/src/switch_xml_config.c	(original)
+++ freeswitch/trunk/src/switch_xml_config.c	Fri Mar 13 10:13:18 2009
@@ -143,6 +143,8 @@
 		switch_bool_t changed = SWITCH_FALSE;
 		switch_xml_config_callback_t callback = (switch_xml_config_callback_t)item->function;
 		
+		switch_assert(item->ptr);
+		
 		if (value) {
 			matched_count++;
 		}
@@ -236,7 +238,7 @@
 							/* We have a preallocated buffer */
 							char *dest = (char*)item->ptr;
 						
-							if (!dest || strncasecmp(dest, newstring, string_options->length)) {
+							if (strncasecmp(dest, newstring, string_options->length)) {
 								switch_copy_string(dest, newstring, string_options->length);
 								changed = SWITCH_TRUE;
 							}



More information about the Freeswitch-svn mailing list