提交 7e3b26ea authored 作者: Mathieu Rene's avatar Mathieu Rene

tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12591 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c2153150
...@@ -143,6 +143,8 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse_event(switch_event_t *ev ...@@ -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_bool_t changed = SWITCH_FALSE;
switch_xml_config_callback_t callback = (switch_xml_config_callback_t)item->function; switch_xml_config_callback_t callback = (switch_xml_config_callback_t)item->function;
switch_assert(item->ptr);
if (value) { if (value) {
matched_count++; matched_count++;
} }
...@@ -236,7 +238,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse_event(switch_event_t *ev ...@@ -236,7 +238,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse_event(switch_event_t *ev
/* We have a preallocated buffer */ /* We have a preallocated buffer */
char *dest = (char*)item->ptr; 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); switch_copy_string(dest, newstring, string_options->length);
changed = SWITCH_TRUE; changed = SWITCH_TRUE;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论