mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
fixing #75619, related to a problem when trying to evaluate condition when
* xpath.c: fixing #75619, related to a problem when trying to evaluate condition when the current node set resulting from that sub-step evaluation is empty. Also fixes 2 potential problem with previous-sibling and next-siblings axis. Daniel
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
Thu Mar 21 13:30:06 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* xpath.c: fixing #75619, related to a problem when trying
|
||||||
|
to evaluate condition when the current node set resulting
|
||||||
|
from that sub-step evaluation is empty. Also fixes 2 potential
|
||||||
|
problem with previous-sibling and next-siblings axis.
|
||||||
|
|
||||||
Thu Mar 21 09:03:59 CET 2002 Daniel Veillard <daniel@veillard.com>
|
Thu Mar 21 09:03:59 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* c14n.c: patch from Mark Vakoc to build C14N if DocBook and
|
* c14n.c: patch from Mark Vakoc to build C14N if DocBook and
|
||||||
|
4
xpath.c
4
xpath.c
@ -8406,7 +8406,6 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt,
|
|||||||
#endif
|
#endif
|
||||||
last = NULL;
|
last = NULL;
|
||||||
next = xmlXPathNextFollowingSibling;
|
next = xmlXPathNextFollowingSibling;
|
||||||
mergeNodeSet = xmlXPathNodeSetMergeUnique;
|
|
||||||
break;
|
break;
|
||||||
case AXIS_NAMESPACE:
|
case AXIS_NAMESPACE:
|
||||||
#ifdef DEBUG_STEP
|
#ifdef DEBUG_STEP
|
||||||
@ -8438,7 +8437,6 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt,
|
|||||||
#endif
|
#endif
|
||||||
first = NULL;
|
first = NULL;
|
||||||
next = xmlXPathNextPrecedingSibling;
|
next = xmlXPathNextPrecedingSibling;
|
||||||
mergeNodeSet = xmlXPathNodeSetMergeUnique;
|
|
||||||
break;
|
break;
|
||||||
case AXIS_SELF:
|
case AXIS_SELF:
|
||||||
#ifdef DEBUG_STEP
|
#ifdef DEBUG_STEP
|
||||||
@ -8678,7 +8676,7 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt,
|
|||||||
/*
|
/*
|
||||||
* If there is some predicate filtering do it now
|
* If there is some predicate filtering do it now
|
||||||
*/
|
*/
|
||||||
if (op->ch2 != -1) {
|
if ((op->ch2 != -1) && (list != NULL) && (list->nodeNr > 0)) {
|
||||||
xmlXPathObjectPtr obj2;
|
xmlXPathObjectPtr obj2;
|
||||||
|
|
||||||
valuePush(ctxt, xmlXPathWrapNodeSet(list));
|
valuePush(ctxt, xmlXPathWrapNodeSet(list));
|
||||||
|
Reference in New Issue
Block a user