chiark / gitweb /
systemctl: avoid unitialized access when showing 0 timers
[elogind.git] / src / systemctl / systemctl.c
index c5166d568b1c750109d7de4eca5343516f32152a..3170b800c57648d167bb97b495d178f0970cae37 100644 (file)
@@ -678,7 +678,7 @@ static int list_sockets(sd_bus *bus, char **args) {
         struct socket_info *s;
         unsigned cs = 0;
         size_t size = 0;
-        int r, n;
+        int r = 0, n;
 
         pager_open_if_enabled();