diff options
Diffstat (limited to 'src/login/logind-seat.c')
-rw-r--r-- | src/login/logind-seat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index 1b6b4cdf2..eacea3c39 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -669,8 +669,7 @@ static bool seat_name_valid_char(char c) { (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || - c == '-' || - c == '_'; + IN_SET(c, '-', '_'); } bool seat_name_is_valid(const char *name) { |