[systemd-commits] src/systemctl

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Mon Nov 11 07:56:19 PST 2013


 src/systemctl/systemctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ad83b4c47cb5b48cfd0a14537cee0c830eec2b74
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date:   Mon Nov 11 08:06:14 2013 -0500

    systemctl: avoid unitialized access when showing 0 timers

diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index c5166d5..3170b80 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -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();
 



More information about the systemd-commits mailing list