final tweak?

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12451 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-03-05 05:47:43 +00:00
parent 35416bb9de
commit 689f570f0c
1 changed files with 2 additions and 1 deletions

View File

@ -85,8 +85,9 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse(switch_xml_t xml, int re
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) {