mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
tree: Only allow elements in xmlDocSetRootElement
This commit is contained in:
@@ -224,7 +224,7 @@ extra_post_call = {
|
||||
"xmlAddPrevSibling":
|
||||
"if (ret_val == NULL) { xmlFreeNode(elem) ; elem = NULL ; }",
|
||||
"xmlDocSetRootElement":
|
||||
"if (doc == NULL) { xmlFreeNode(root) ; root = NULL ; }",
|
||||
"if (ret_val == NULL) { xmlFreeNode(root) ; root = NULL ; }",
|
||||
"xmlReplaceNode":
|
||||
"""if (cur != NULL) {
|
||||
xmlUnlinkNode(cur);
|
||||
|
||||
Reference in New Issue
Block a user