mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Fix: Copy XML childs recursively
This commit is contained in:
parent
c26ee2fcfb
commit
c02f34e989
@ -840,7 +840,7 @@ int reportxml_node_add_xml_child(reportxml_node_t *node, xml
|
||||
|
||||
node->xml_childs = n;
|
||||
|
||||
node->xml_childs[node->xml_childs_len] = xmlCopyNode(child, 2);
|
||||
node->xml_childs[node->xml_childs_len] = xmlCopyNode(child, 1);
|
||||
if (node->xml_childs[node->xml_childs_len] == NULL)
|
||||
return -1;
|
||||
|
||||
@ -867,7 +867,7 @@ xmlNodePtr reportxml_node_get_xml_child(reportxml_node_t *node, siz
|
||||
if (idx >= node->xml_childs_len)
|
||||
return NULL;
|
||||
|
||||
ret = xmlCopyNode(node->xml_childs[idx], 2);
|
||||
ret = xmlCopyNode(node->xml_childs[idx], 1);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user