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

FreeSWITCH SVN mrene at freeswitch.org
Wed Mar 4 21:47:43 PST 2009


Author: mrene
Date: Wed Mar  4 23:47:43 2009
New Revision: 12451

Log:
final 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	Wed Mar  4 23:47:43 2009
@@ -85,8 +85,9 @@
 			case SWITCH_CONFIG_STRING:
 				{
 					switch_xml_config_string_options_t *string_options = (switch_xml_config_string_options_t*)item->data;
-					const char *newstring = NULL;
+
 					if (string_options->length > 0) {
+						const char *newstring = NULL;
 						/* We have a preallocated buffer */
 						char *dest = (char*)item->ptr;
 						if (value) {



More information about the Freeswitch-svn mailing list