mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-19 14:50:07 +03:00
tree: Improve argument check in xmlTextConcat
This commit is contained in:
parent
16c2955733
commit
d57c57ed2f
2
tree.c
2
tree.c
@ -6980,6 +6980,8 @@ xmlIsBlankNode(const xmlNode *node) {
|
||||
int
|
||||
xmlTextConcat(xmlNodePtr node, const xmlChar *content, int len) {
|
||||
if (node == NULL) return(-1);
|
||||
if ((content == NULL) || (len <= 0))
|
||||
return(0);
|
||||
|
||||
if ((node->type != XML_TEXT_NODE) &&
|
||||
(node->type != XML_CDATA_SECTION_NODE) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user