summaryrefslogtreecommitdiff
path: root/main/xml.c
diff options
context:
space:
mode:
authorEliel C. Sardanons <eliels@gmail.com>2009-05-18 13:30:34 +0000
committerEliel C. Sardanons <eliels@gmail.com>2009-05-18 13:30:34 +0000
commita007eb13b2c477c7f08ab9219ee405dc87db77cb (patch)
treeae59aaf4458008de3899b4564065f3e70ccd27c2 /main/xml.c
parentbea88fc72af7f516660c47266ee93cd924621d9c (diff)
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
Diffstat (limited to 'main/xml.c')
-rw-r--r--main/xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/xml.c b/main/xml.c
index fe00bfbf6..36e7dd812 100644
--- a/main/xml.c
+++ b/main/xml.c
@@ -58,7 +58,7 @@ struct ast_xml_doc *ast_xml_open(char *filename)
doc = xmlReadFile(filename, NULL, XML_PARSE_RECOVER);
if (doc) {
/* process xinclude elements. */
- if (xmlXIncludeProcess(doc) <= 0) {
+ if (xmlXIncludeProcess(doc) < 0) {
xmlFreeDoc(doc);
return NULL;
}