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:
4
xpath.c
4
xpath.c
@ -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
|
||||
|
Reference in New Issue
Block a user