Commit d2f23009 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

Adam Lounds pointed out a bug in xmlSearchNs() Daniel

* tree.c: Adam Lounds pointed out a bug in xmlSearchNs()
Daniel
parent 8acca114
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>
* xpath.c include/libxml/xpathInternals.h: the change made to
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment