提交 91317139 authored 作者: Michael Jerris's avatar Michael Jerris

part of FSCORE-61

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6314 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 465ba3d4
...@@ -1758,7 +1758,7 @@ SWITCH_DECLARE(const char *) switch_xml_error(switch_xml_t xml) ...@@ -1758,7 +1758,7 @@ SWITCH_DECLARE(const char *) switch_xml_error(switch_xml_t xml)
// returns a new empty switch_xml structure with the given root tag name // returns a new empty switch_xml structure with the given root tag name
SWITCH_DECLARE(switch_xml_t) switch_xml_new(const char *name) SWITCH_DECLARE(switch_xml_t) switch_xml_new(const char *name)
{ {
static char *ent[] = { "lt;", "<", "gt;", ">", "quot;", """, static const char *ent[] = { "lt;", "<", "gt;", ">", "quot;", """,
"apos;", "'", "amp;", "&", NULL "apos;", "'", "amp;", "&", NULL
}; };
switch_xml_root_t root = (switch_xml_root_t) memset(malloc(sizeof(struct switch_xml_root)), switch_xml_root_t root = (switch_xml_root_t) memset(malloc(sizeof(struct switch_xml_root)),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论