mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-01 10:06:59 +03:00
Adam Lounds pointed out a bug in xmlSearchNs() Daniel
* tree.c: Adam Lounds pointed out a bug in xmlSearchNs() Daniel
This commit is contained in:
2
tree.c
2
tree.c
@ -4070,6 +4070,8 @@ xmlSearchNs(xmlDocPtr doc, xmlNodePtr node, const xmlChar *nameSpace) {
|
||||
if (node == NULL) return(NULL);
|
||||
if ((nameSpace != NULL) &&
|
||||
(xmlStrEqual(nameSpace, (const xmlChar *)"xml"))) {
|
||||
if (doc == NULL)
|
||||
return(NULL);
|
||||
if (doc->oldNs == NULL) {
|
||||
/*
|
||||
* Allocate a new Namespace and fill the fields.
|
||||
|
Reference in New Issue
Block a user