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) {
participants (1)
-
FreeSWITCH SVN