tree-wide: use IN_SET() more

This commit is contained in:
Frantisek Sumsal
2023-12-27 11:15:48 +01:00
parent c633361f06
commit c83f4220a1
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ int get_locales(char ***ret) {
locales = set_free(locales);
r = getenv_bool("SYSTEMD_LIST_NON_UTF8_LOCALES");
if (r == -ENXIO || r == 0) {
if (IN_SET(r, -ENXIO, 0)) {
char **a, **b;
/* Filter out non-UTF-8 locales, because it's 2019, by default */