1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

fixed a bug in the nodeset to boolean comparison code pointed out by

* xpath.c: fixed a bug in the nodeset to boolean comparison code
  pointed out by Melvyn Sopacua.
Daniel
This commit is contained in:
Daniel Veillard
2002-04-01 08:04:14 +00:00
parent e979e3b57a
commit bd6e63122f
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Apr 1 10:02:57 CEST 2002 Daniel Veillard <daniel@veillard.com>
* xpath.c: fixed a bug in the nodeset to boolean comparison code
pointed out by Melvyn Sopacua.
Fri Mar 29 23:41:53 CET 2002 Daniel Veillard <daniel@veillard.com>
* libxml.m4: Fr<46>d<EFBFBD>ric Crozat gave a patch related to the change

View File

@ -4423,9 +4423,11 @@ xmlXPathEqualValues(xmlXPathParserContextPtr ctxt) {
case XPATH_NODESET:
case XPATH_XSLT_TREE:
if ((arg2->nodesetval == NULL) ||
(arg2->nodesetval->nodeNr == 0)) ret = 0;
(arg2->nodesetval->nodeNr == 0))
ret = 0;
else
ret = 1;
ret = (ret == arg1->boolval);
break;
case XPATH_BOOLEAN:
#ifdef DEBUG_EXPR