mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
applied patch to xmlSetNsProp from Mike Hommey Daniel
* tree.c: applied patch to xmlSetNsProp from Mike Hommey Daniel
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
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>
|
Sun Feb 6 00:17:57 CET 2005 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* pattern.c xmllint.c: fixed implementation for |
|
* pattern.c xmllint.c: fixed implementation for |
|
||||||
|
2
tree.c
2
tree.c
@@ -6446,7 +6446,7 @@ xmlSetNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name,
|
|||||||
const xmlChar *value) {
|
const xmlChar *value) {
|
||||||
xmlAttrPtr prop;
|
xmlAttrPtr prop;
|
||||||
|
|
||||||
if ((node == NULL) || (name == NULL))
|
if ((node == NULL) || (name == NULL) || (node->type != XML_ELEMENT_NODE))
|
||||||
return(NULL);
|
return(NULL);
|
||||||
|
|
||||||
if (ns == NULL)
|
if (ns == NULL)
|
||||||
|
Reference in New Issue
Block a user