HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__xpath_find_one()

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

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 Mar 11 2025, 3:40 AM

Commit No Longer Exists

This commit no longer exists in the repository.