1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-31 02:43:06 +03:00

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)
This commit is contained in:
William M. Brack
2004-03-17 10:51:06 +00:00
parent 6b24dc9bde
commit 22570c760b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Mar 17 18:49:55 HKT 2004 William Brack <wbrack@mmm.com.hk>
* 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 <wbrack@mmm.com.hk> Tue Mar 16 08:55:18 HKT 2004 William Brack <wbrack@mmm.com.hk>
* libxslt/xsltutils.c: corrected my error from bug 135938 * libxslt/xsltutils.c: corrected my error from bug 135938

View File

@ -424,7 +424,7 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
} }
if (ctxt->state == XSLT_STATE_ERROR) if (ctxt->state == XSLT_STATE_ERROR)
errorno = 9; errorno = 9;
if (ctxt->state == XSLT_STATE_STOPPED) else if (ctxt->state == XSLT_STATE_STOPPED)
errorno = 10; errorno = 10;
xsltFreeTransformContext(ctxt); xsltFreeTransformContext(ctxt);
if (timing) { if (timing) {
@ -488,6 +488,8 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
} }
if (ctxt->state == XSLT_STATE_ERROR) if (ctxt->state == XSLT_STATE_ERROR)
errorno = 9; errorno = 9;
else if (ctxt->state == XSLT_STATE_STOPPED)
errorno = 10;
xsltFreeTransformContext(ctxt); xsltFreeTransformContext(ctxt);
if (timing) if (timing)
endTimer("Running stylesheet and saving result"); endTimer("Running stylesheet and saving result");