HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__xpath_find_one()

Description

Refactor: libcrmcommon: New pcmk__xpath_find_one()

To replace get_xpath_object().

get_xpath_object() dereferences its xmlNode argument without
NULL-checking it. So the fact that we now dereference it in all of the
callers to get its doc member, shouldn't cause any NEW problems. Later,
in per-function best practices commits, we should NULL-check the
arguments where appropriate.

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

Details

Provenance
nrwahl2Authored on Tue, Mar 11, 3:40 AM
Parents
rPa819753ebe3f: Refactor: various: Match elements directly with get_xpath_object()
Branches
Unknown
Tags
Unknown