Index: third_party/libxslt/libxslt/functions.c |
=================================================================== |
--- third_party/libxslt/libxslt/functions.c (revision 39981) |
+++ third_party/libxslt/libxslt/functions.c (working copy) |
@@ -813,6 +813,7 @@ |
ctxt->error = XPATH_INVALID_ARITY; |
return; |
} |
+ xmlXPathStringFunction(ctxt, 1); |
if ((ctxt->value == NULL) || (ctxt->value->type != XPATH_STRING)) { |
xsltTransformError(xsltXPathGetTransformContext(ctxt), NULL, NULL, |
"element-available() : invalid arg expecting a string\n"); |
@@ -878,6 +879,7 @@ |
ctxt->error = XPATH_INVALID_ARITY; |
return; |
} |
+ xmlXPathStringFunction(ctxt, 1); |
if ((ctxt->value == NULL) || (ctxt->value->type != XPATH_STRING)) { |
xsltTransformError(xsltXPathGetTransformContext(ctxt), NULL, NULL, |
"function-available() : invalid arg expecting a string\n"); |