]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logind: use gcc empty structure initialization
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 08:13:28 +0000 (10:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 14:08:06 +0000 (16:08 +0200)
src/login/logind-session.c

index f78453736d20ffaa2bb1babad75d4920a109672f..5658ba7c68da8c7b829eec0cfc5b465cfc0f1f80 100644 (file)
@@ -1181,7 +1181,7 @@ static int session_open_vt(Session *s) {
 
 int session_prepare_vt(Session *s) {
         int vt, r;
-        struct vt_mode mode = { 0 };
+        struct vt_mode mode = {};
 
         if (s->vtnr < 1)
                 return 0;