1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-25 10:50:08 +03:00

valid: Fix c1->parent pointer in xmlCopyDocElementContent

Fixes #572.
This commit is contained in:
Nick Wellnhofer 2023-08-03 12:00:55 +02:00
parent 7569328138
commit 58de9d31da

View File

@ -1052,7 +1052,7 @@ xmlCopyDocElementContent(xmlDocPtr doc, xmlElementContentPtr cur) {
if (cur->c1 != NULL)
tmp->c1 = xmlCopyDocElementContent(doc,cur->c1);
if (tmp->c1 != NULL)
tmp->c1->parent = ret;
tmp->c1->parent = tmp;
prev = tmp;
cur = cur->c2;
}