Commit b6b36d37 authored by Daniel Veillard's avatar Daniel Veillard

applied patch to xmlSetNsProp from Mike Hommey Daniel

* tree.c: applied patch to xmlSetNsProp from Mike Hommey
Daniel
parent 2b2e02d6
Wed Feb 9 17:47:40 CET 2005 Daniel Veillard <daniel@veillard.com>
* tree.c: applied patch to xmlSetNsProp from Mike Hommey
Sun Feb 6 00:17:57 CET 2005 Daniel Veillard <daniel@veillard.com>
* pattern.c xmllint.c: fixed implementation for |
......
......@@ -6446,7 +6446,7 @@ xmlSetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name,
const xmlChar *value) {
xmlAttrPtr prop;
if ((node == NULL) || (name == NULL))
if ((node == NULL) || (name == NULL) || (node->type != XML_ELEMENT_NODE))
return(NULL);
if (ns == NULL)
......
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