libxslt r1482 - in trunk: . libxslt



Author: wbrack
Date: Thu Jul 10 17:12:45 2008
New Revision: 1482
URL: http://svn.gnome.org/viewvc/libxslt?rev=1482&view=rev

Log:
* libxslt/functions.c: patch from Ron Burk to fix problem
  with string check for element-available and
  function-available #530891.

Modified:
   trunk/ChangeLog
   trunk/libxslt/functions.c

Modified: trunk/libxslt/functions.c
==============================================================================
--- trunk/libxslt/functions.c	(original)
+++ trunk/libxslt/functions.c	Thu Jul 10 17:12:45 2008
@@ -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");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]