]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/time-util.c
tree-wide: use IN_SET macro (#6977)
[thirdparty/systemd.git] / src / basic / time-util.c
index f67467c5bde3251da232bee7a29a0e2c584185ab..46ec722989f07d2b703583eef11985df5eda8b63 100644 (file)
@@ -1308,7 +1308,7 @@ bool timezone_is_valid(const char *name) {
                 if (!(*p >= '0' && *p <= '9') &&
                     !(*p >= 'a' && *p <= 'z') &&
                     !(*p >= 'A' && *p <= 'Z') &&
-                    !(*p == '-' || *p == '_' || *p == '+' || *p == '/'))
+                    !IN_SET(*p, '-', '_', '+', '/'))
                         return false;
 
                 if (*p == '/') {