summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/logind-seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c
index df91cd0d8a..bc695fea83 100644
--- a/src/logind-seat.c
+++ b/src/logind-seat.c
@@ -199,7 +199,7 @@ static int seat_preallocate_vts(Seat *s) {
if (!seat_is_vtconsole(s))
return 0;
- for (i = 1; i < s->manager->n_autovts; i++) {
+ for (i = 1; i <= s->manager->n_autovts; i++) {
int q;
q = vt_allocate(i);