summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2005-02-11 10:58:55 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2005-02-11 10:58:55 +0000
commit4e1c2db89ed0f49567682e1498ce19bd2bfa7e4f (patch)
tree05c6e8114a4b0b64a7e22fe60db68b02ae554f94 /xmllint.c
parentb6b36d37f2fa2955cbd980e160f02bc5ae7e505f (diff)
downloadlibxml2-4e1c2db89ed0f49567682e1498ce19bd2bfa7e4f.tar.gz
fixed compilation warning changed xmlWarningMsg so ctxt->errNo is not set
* dict.c: fixed compilation warning * parser.c: changed xmlWarningMsg so ctxt->errNo is not set * xmllint.c: changed to return non-zero status if error on xinclude processing * xmlsave.c: minor deletion of a redundant condition statement
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmllint.c b/xmllint.c
index dea8d5bf..f691daef 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -1341,7 +1341,8 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
if ((timing) && (!repeat)) {
startTimer();
}
- xmlXIncludeProcessFlags(doc, options);
+ if (xmlXIncludeProcessFlags(doc, options) < 0)
+ progresult = XMLLINT_ERR_UNCLASS;
if ((timing) && (!repeat)) {
endTimer("Xinclude processing");
}