mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-29 15:41:13 +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:
@ -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");
|
||||
|
Reference in New Issue
Block a user