Commit 8fad8bff authored by William M. Brack's avatar William M. Brack
Browse files

fixed problem with predicate evaluation on an empty nodeset (bug 143409)

* xpath.c: fixed problem with predicate evaluation on an
  empty nodeset (bug 143409)
parent 06112d18
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)
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment