]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
final tweak?
authorMathieu Rene <mrene@avgs.ca>
Thu, 5 Mar 2009 05:47:43 +0000 (05:47 +0000)
committerMathieu Rene <mrene@avgs.ca>
Thu, 5 Mar 2009 05:47:43 +0000 (05:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12451 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_xml_config.c

index 452bb68a4080c77e2ec9c0276468d18de7e9a8cd..27be72fe52b7ad309731c664a3ef77bec576d0f2 100644 (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) {