1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +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:
William M. Brack 2004-06-02 08:26:25 +00:00
parent 06112d18ff
commit 8fad8bff2c
2 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -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;