HomeClusterLabs Projects

Refactor: libcrmcommon: New pcmk__xpath_find_one()
9df589717635Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

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

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.