1
0
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:
Daniel Veillard
2001-02-11 20:17:31 +00:00
parent a666359a16
commit d12b69ddf5
4 changed files with 42 additions and 29 deletions

View File

@ -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;