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

This commit is contained in:
Lennart Poettering 2018-08-06 19:05:26 +02:00
parent 75bbdf478c
commit 709d058756
1 changed files with 1 additions and 1 deletions

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);