Commit 651f9471 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

ouch a non-defined namespace could lead to a crash, fixed #61215 Daniel

* SAX.c: ouch a non-defined namespace could lead to a crash, fixed #61215
Daniel
parent 7dd0570d
Thu Oct 4 16:47:44 CEST 2001 Daniel Veillard <daniel@veillard.com>
* SAX.c: ouch a non-defined namespace could lead to a crash,
fixed #61215
Thu Oct 4 16:24:26 CEST 2001 Daniel Veillard <daniel@veillard.com>
* parserInternals.c: closed bug #61054
......
......@@ -1139,7 +1139,7 @@ startElement(void *ctx, const xmlChar *fullname, const xmlChar **atts)
* set the namespace node, making sure that if the default namspace
* is unbound on a parent we simply kee it NULL
*/
if ((ns != NULL) && (ns->href[0] != 0))
if ((ns != NULL) && (ns->href != NULL) && (ns->href[0] != 0))
xmlSetNs(ret, ns);
/*
......
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