summaryrefslogtreecommitdiff
path: root/src/login/logind-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r--src/login/logind-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index 407429c48a..ab1c79cfa2 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -363,7 +363,7 @@ int session_activate(Session *s) {
assert(s);
assert(s->user);
- if (s->vtnr < 0)
+ if (s->vtnr <= 0)
return -ENOTSUP;
if (!s->seat)