]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorMathieu Rene <mrene@avgs.ca>
Fri, 13 Mar 2009 15:13:18 +0000 (15:13 +0000)
committerMathieu Rene <mrene@avgs.ca>
Fri, 13 Mar 2009 15:13:18 +0000 (15:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12591 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_xml_config.c

index a33f0f244a851575471c472c89a41afc4a8b169c..6915e41999dc578cc6c65555dfc83df2dbfe01b4 100644 (file)
@@ -143,6 +143,8 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse_event(switch_event_t *ev
                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 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse_event(switch_event_t *ev
                                                        /* 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;
                                                        }