mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-25 23:21:26 +03:00
fixed problem with predicate evaluation on an empty nodeset (bug 143409)
* xpath.c: fixed problem with predicate evaluation on an empty nodeset (bug 143409)
This commit is contained in:
parent
06112d18ff
commit
8fad8bff2c
@ -1,3 +1,8 @@
|
||||
Wed Jun 02 16:25:32 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
||||
|
||||
* xpath.c: fixed problem with predicate evaluation on an
|
||||
empty nodeset (bug 143409)
|
||||
|
||||
Wed Jun 02 11:26:41 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
||||
|
||||
* testSAX.c: fixed problem with attribute listing (bug 142674)
|
||||
|
2
xpath.c
2
xpath.c
@ -10592,6 +10592,7 @@ xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op)
|
||||
if ((oldset == NULL) || (oldset->nodeNr == 0)) {
|
||||
ctxt->context->contextSize = 0;
|
||||
ctxt->context->proximityPosition = 0;
|
||||
/*
|
||||
if (op->ch2 != -1)
|
||||
total +=
|
||||
xmlXPathCompOpEval(ctxt,
|
||||
@ -10600,6 +10601,7 @@ xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op)
|
||||
res = valuePop(ctxt);
|
||||
if (res != NULL)
|
||||
xmlXPathFreeObject(res);
|
||||
*/
|
||||
valuePush(ctxt, obj);
|
||||
ctxt->context->node = oldnode;
|
||||
CHECK_ERROR0;
|
||||
|
Loading…
Reference in New Issue
Block a user