commit | d2f23009b358804fa31da7a004f2947aca6fb103 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Mon Jan 21 13:36:00 2002 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Mon Jan 21 13:36:00 2002 +0000 |
tree | 0b04278a66c21f185eac4e44188b31b7688733af | |
parent | 8acca114eef1383702a6d6d97588e930cd650b9c [diff] [blame] |
Adam Lounds pointed out a bug in xmlSearchNs() Daniel * tree.c: Adam Lounds pointed out a bug in xmlSearchNs() Daniel
diff --git a/tree.c b/tree.c index 6380461..3370f0e 100644 --- a/tree.c +++ b/tree.c
@@ -4070,6 +4070,8 @@ 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.