logind: don't rely on downgrade-to-bool

This commit is contained in:
Lennart Poettering
2018-10-13 12:59:29 +02:00
parent 75bbdf478c
commit 709d058756
+1 -1
View File
@@ -537,7 +537,7 @@ int session_activate(Session *s) {
/* on seats with VTs, we let VTs manage session-switching */
if (seat_has_vts(s->seat)) {
if (!s->vtnr)
if (s->vtnr == 0)
return -EOPNOTSUPP;
return chvt(s->vtnr);