+/* SPDX-License-Identifier: LGPL-2.1+ */
/***
This file is part of systemd.
if (!s)
return false;
- return *s == ',' || *s == '\0';
+ return IN_SET(*s, ',', '\0');
}
static const char* strnulldash(const char *s) {
char_array_0(line);
l = strstrip(line);
- if (l[0] == 0 || l[0] == '#')
+ if (IN_SET(l[0], 0, '#'))
continue;
if (in_section && first_word(l, "Option")) {
(*n)++;
l = strstrip(line);
- if (l[0] == 0 || l[0] == '#')
+ if (IN_SET(l[0], 0, '#'))
continue;
r = strv_split_extract(&b, l, WHITESPACE, EXTRACT_QUOTES);