mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-08 21:42:07 +03:00
fixed some return code problems raised by Thomas Mauch Daniel
* xsltproc/xsltproc.c libxslt/xsltutils.c doc/xsltproc.xml: fixed some return code problems raised by Thomas Mauch Daniel
This commit is contained in:
@@ -282,6 +282,8 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
|
||||
}
|
||||
if (ctxt->state == XSLT_STATE_ERROR)
|
||||
errorno = 9;
|
||||
if (ctxt->state == XSLT_STATE_STOPPED)
|
||||
errorno = 10;
|
||||
xsltFreeTransformContext(ctxt);
|
||||
if (timing) {
|
||||
if (repeat)
|
||||
@@ -605,6 +607,10 @@ main(int argc, char **argv)
|
||||
}
|
||||
cur = xsltParseStylesheetDoc(style);
|
||||
if (cur != NULL) {
|
||||
if (cur->errors != 0) {
|
||||
errorno = 5;
|
||||
goto done;
|
||||
}
|
||||
if (cur->indent == 1)
|
||||
xmlIndentTreeOutput = 1;
|
||||
else
|
||||
|
Reference in New Issue
Block a user