HomeClusterLabs Projects

Refactor: libcrmcommon: Accept NULL result arg in crm_str_to_boolean()

Description

Refactor: libcrmcommon: Accept NULL result arg in crm_str_to_boolean()

Our unit tests already pass a NULL argument in cases where the input
string is not a valid true or false string. If the input string were
valid, those calls would seg fault.

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

Details

Provenance
nrwahl2Authored on Dec 21 2023, 12:36 AM
Parents
rPafc3a11241dd: Doc: libcrmcommon: Add doxygen for pcmk__valid_boolean()
Branches
Unknown
Tags
Unknown