mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
Do not avoid loading the XML documentation if not XInclude substitution is done.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@195075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -58,7 +58,7 @@ struct ast_xml_doc *ast_xml_open(char *filename)
|
|||||||
doc = xmlReadFile(filename, NULL, XML_PARSE_RECOVER);
|
doc = xmlReadFile(filename, NULL, XML_PARSE_RECOVER);
|
||||||
if (doc) {
|
if (doc) {
|
||||||
/* process xinclude elements. */
|
/* process xinclude elements. */
|
||||||
if (xmlXIncludeProcess(doc) <= 0) {
|
if (xmlXIncludeProcess(doc) < 0) {
|
||||||
xmlFreeDoc(doc);
|
xmlFreeDoc(doc);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user