diff --git a/ChangeLog b/ChangeLog index 2742583a..032897cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jun 02 16:25:32 HKT 2004 William Brack + + * xpath.c: fixed problem with predicate evaluation on an + empty nodeset (bug 143409) + Wed Jun 02 11:26:41 HKT 2004 William Brack * testSAX.c: fixed problem with attribute listing (bug 142674) diff --git a/xpath.c b/xpath.c index 9b58fa29..9bbfdce9 100644 --- a/xpath.c +++ b/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;