mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
bit of testing, a bit of fixing, a bit of testing, a bit of fixing ...
* xpath.c: small fixup * SAX.c: don't warn on empty namespaces. Daniel
This commit is contained in:
4
xpath.c
4
xpath.c
@ -3717,7 +3717,9 @@ xmlXPathStringFunction(xmlXPathParserContextPtr ctxt, int nargs) {
|
||||
break;
|
||||
case XPATH_XSLT_TREE:
|
||||
case XPATH_NODESET:
|
||||
if (cur->nodesetval->nodeNr == 0) {
|
||||
if (cur->nodesetval == NULL)
|
||||
valuePush(ctxt, xmlXPathNewCString(""));
|
||||
else if (cur->nodesetval->nodeNr == 0) {
|
||||
valuePush(ctxt, xmlXPathNewCString(""));
|
||||
} else {
|
||||
xmlChar *res;
|
||||
|
Reference in New Issue
Block a user