[xml] xpath.c in libxml2-2.3.6



A small enhancement is needed -

----------------------------------------------------------------------------
-------

--- xpath.c.orig        Sun Apr  8 10:35:06 2001
+++ xpath.c     Tue Apr 10 07:26:32 2001
@@ -7423,7 +7423,7 @@
            return(res->floatval == ctxt->context->proximityPosition);
         case XPATH_NODESET:
         case XPATH_XSLT_TREE:
-           if (res->nodesetval)
+           if (res->nodesetval==NULL)
                return(0);
            return(res->nodesetval->nodeNr != 0);
         case XPATH_STRING:

----------------------------------------------------------------------------
-------

Bill Brack
ABC QuickSilver





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