diff options
-rw-r--r-- | libxslt/functions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libxslt/functions.c b/libxslt/functions.c index f5e5d748..a1484a07 100644 --- a/libxslt/functions.c +++ b/libxslt/functions.c @@ -656,7 +656,8 @@ xsltFormatNumberFunction(xmlXPathParserContextPtr ctxt, int nargs) return; } - if ((formatValues != NULL) && (formatObj != NULL) && (numberObj != NULL)) { + if ((ctxt->error == 0) && + (formatValues != NULL) && (formatObj != NULL) && (numberObj != NULL)) { if (xsltFormatNumberConversion(formatValues, formatObj->stringval, numberObj->floatval, |