提交 dbfb1cdb authored 作者: Mathieu Rene's avatar Mathieu Rene

oops

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12449 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 b38a8610
......@@ -181,8 +181,8 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse(switch_xml_t xml, int re
case SWITCH_CONFIG_FLAGARRAY:
{
int8_t *dest = (int8_t*)item->ptr;
int index = (int)(intptr_t)item->data;
int newval = value ? !!switch_true(value) : (int8_t)((intptr_t)item->defaultvalue);
int8_t index = (int)(intptr_t)item->data;
int8_t newval = value ? !!switch_true(value) : (int8_t)((intptr_t)item->defaultvalue);
if (dest[index] != newval) {
changed = SWITCH_TRUE;
dest[index] = newval;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论