]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: don't rely on downgrade-to-bool
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Aug 2018 17:05:26 +0000 (19:05 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 13 Oct 2018 10:59:29 +0000 (12:59 +0200)
src/login/logind-session.c

index 72a99163ef22059a8e22dc90606e62c6a3256f4a..a8972303973c6b519ce57e09b237fd736c80a575 100644 (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);