summaryrefslogtreecommitdiff
path: root/src/login/logind-seat.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-07-23 10:13:45 +0200
committerLennart Poettering <lennart@poettering.net>2019-07-23 16:08:06 +0200
commit61c6e8e49c0995d92e3ded73d01e725fd1b27501 (patch)
tree768beb5b819f623868b2b7cfe1897bd0446e1118 /src/login/logind-seat.c
parent9fb2c8b8c1d1b77718090d5cc908adab53ea734d (diff)
downloadsystemd-61c6e8e49c0995d92e3ded73d01e725fd1b27501.tar.gz
logind: don't claim we'd preallocate VTs when we shortcut it
Diffstat (limited to 'src/login/logind-seat.c')
-rw-r--r--src/login/logind-seat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c
index 9577ff86f4..094fcd668d 100644
--- a/src/login/logind-seat.c
+++ b/src/login/logind-seat.c
@@ -191,14 +191,14 @@ int seat_preallocate_vts(Seat *s) {
assert(s);
assert(s->manager);
- log_debug("Preallocating VTs...");
-
if (s->manager->n_autovts <= 0)
return 0;
if (!seat_has_vts(s))
return 0;
+ log_debug("Preallocating VTs...");
+
for (i = 1; i <= s->manager->n_autovts; i++) {
int q;