diff --git a/main/xml.c b/main/xml.c index fe00bfbf69..36e7dd8129 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; }