HomeClusterLabs Projects

Refactor: libcrmcommon: pcmk__parse_ll_range() values undefined on error

Description

Refactor: libcrmcommon: pcmk__parse_ll_range() values undefined on error

Setting the values to PCMK__PARSE_INT_DEFAULT on error is redundant. If
the return value is not pcmk_rc_ok, then the caller should not rely on
any specific values.

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

Details

Provenance
nrwahl2Authored on Sat, Aug 9, 1:34 AM
Parents
rP7a491a623a7c: Refactor: libcrmcommon: Use g_strsplit() in pcmk__parse_ll_range()
Branches
Unknown
Tags
Unknown