Skip to content

Commit 2c94e05

Browse files
committed
Refactor: libcrmcommon: Drop check for unused flag from str_any_of()
This is a static function and we never pass in pcmk__str_null_matches. Signed-off-by: Reid Wahl <[email protected]>
1 parent 44668af commit 2c94e05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/common/strings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ static bool
994994
str_any_of(const char *s, va_list args, uint32_t flags)
995995
{
996996
if (s == NULL) {
997-
return pcmk_is_set(flags, pcmk__str_null_matches);
997+
return false;
998998
}
999999

10001000
while (1) {

0 commit comments

Comments
 (0)