HomeClusterLabs Projects

Refactor: various: Check pcmk__xe_get_time() rc only where useful
9be9dfd1e3d6Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Refactor: various: Check pcmk__xe_get_time() rc only where useful

Take advantage of the fact that the destination output variable is
unchanged on error. If the caller initialized it to some value (either
explicitly or by allocating memory with calloc() or
pcmk__assert_alloc()), then we can assume that either it's unchanged or
a valid value was parsed into it.

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

Details

Provenance
nrwahl2Authored on Mar 19 2025, 2:44 AM
Parents
rP30a31b21623d: Refactor: libpe_status: Fix whitespace issues in pe_actions.c
Branches
Unknown
Tags
Unknown

Event Timeline