HomeClusterLabs Projects

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

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: 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

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.