HomeClusterLabs Projects

Refactor: libcrmcommon: Skip unnecessary doc in replace_xml_child()

Description

Refactor: libcrmcommon: Skip unnecessary doc in replace_xml_child()

The copy of the update argument doesn't need a doc of its own, so we
don't need copy_xml(). When it replaces child, it becomes part of the
doc that child was originally in.

Ref T185

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Jun 8 2023, 3:51 AM
Parents
rP123511c20812: Low: libcrmcommon: replace_xml_node() segfaults when doc is shared
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task