Commit c02f34e9 authored by Philipp Schafft's avatar Philipp Schafft

Fix: Copy XML childs recursively

parent c26ee2fc
......@@ -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;
}
......
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