summaryrefslogtreecommitdiff
path: root/xsltproc/xsltproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xsltproc/xsltproc.c')
-rw-r--r--xsltproc/xsltproc.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index 8244ef3a..42d6b9aa 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -359,16 +359,23 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
#ifdef LIBXML_XINCLUDE_ENABLED
if (xinclude) {
+ int ret;
+
if (timing)
startTimer();
#if LIBXML_VERSION >= 20603
- xmlXIncludeProcessFlags(doc, XSLT_PARSE_OPTIONS);
+ ret = xmlXIncludeProcessFlags(doc, XSLT_PARSE_OPTIONS);
#else
- xmlXIncludeProcess(doc);
+ ret = xmlXIncludeProcess(doc);
#endif
if (timing) {
endTimer("XInclude processing %s", filename);
}
+
+ if (ret < 0) {
+ errorno = 6;
+ return;
+ }
}
#endif
if (timing)