From 22570c760bd92401340bbf5b6f92c6d15f9bc298 Mon Sep 17 00:00:00 2001 From: "William M. Brack" Date: Wed, 17 Mar 2004 10:51:06 +0000 Subject: [PATCH] added check for state XSLT_STATE_STOPPED when output file is used (bug * xsltproc/xsltproc.c: added check for state XSLT_STATE_STOPPED when output file is used (bug 137341) --- ChangeLog | 5 +++++ xsltproc/xsltproc.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bf9148ce..c0e947e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 17 18:49:55 HKT 2004 William Brack + + * xsltproc/xsltproc.c: added check for state XSLT_STATE_STOPPED + when output file is used (bug 137341) + Tue Mar 16 08:55:18 HKT 2004 William Brack * libxslt/xsltutils.c: corrected my error from bug 135938 diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index 61313810..e676d061 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -424,7 +424,7 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) { } if (ctxt->state == XSLT_STATE_ERROR) errorno = 9; - if (ctxt->state == XSLT_STATE_STOPPED) + else if (ctxt->state == XSLT_STATE_STOPPED) errorno = 10; xsltFreeTransformContext(ctxt); if (timing) { @@ -488,6 +488,8 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) { } if (ctxt->state == XSLT_STATE_ERROR) errorno = 9; + else if (ctxt->state == XSLT_STATE_STOPPED) + errorno = 10; xsltFreeTransformContext(ctxt); if (timing) endTimer("Running stylesheet and saving result");