mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-05 19:35:54 +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:
@@ -1,3 +1,7 @@
|
|||||||
|
Mon Jan 21 14:34:37 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* tree.c: Adam Lounds pointed out a bug in xmlSearchNs()
|
||||||
|
|
||||||
Mon Jan 21 09:55:21 CET 2002 Daniel Veillard <daniel@veillard.com>
|
Mon Jan 21 09:55:21 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* xpath.c include/libxml/xpathInternals.h: the change made to
|
* xpath.c include/libxml/xpathInternals.h: the change made to
|
||||||
|
2
tree.c
2
tree.c
@@ -4070,6 +4070,8 @@ xmlSearchNs(xmlDocPtr doc, xmlNodePtr node, const xmlChar *nameSpace) {
|
|||||||
if (node == NULL) return(NULL);
|
if (node == NULL) return(NULL);
|
||||||
if ((nameSpace != NULL) &&
|
if ((nameSpace != NULL) &&
|
||||||
(xmlStrEqual(nameSpace, (const xmlChar *)"xml"))) {
|
(xmlStrEqual(nameSpace, (const xmlChar *)"xml"))) {
|
||||||
|
if (doc == NULL)
|
||||||
|
return(NULL);
|
||||||
if (doc->oldNs == NULL) {
|
if (doc->oldNs == NULL) {
|
||||||
/*
|
/*
|
||||||
* Allocate a new Namespace and fill the fields.
|
* Allocate a new Namespace and fill the fields.
|
||||||
|
Reference in New Issue
Block a user