diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-11-11 08:06:14 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-11-11 10:55:51 -0500 |
commit | ad83b4c47cb5b48cfd0a14537cee0c830eec2b74 (patch) | |
tree | eb4cdfb8d0c64169bbdd9ccd1e60160de5180f0c /src/systemctl | |
parent | 938bcbab125298b9c49946ca0bd0b47890e4d140 (diff) |
systemctl: avoid unitialized access when showing 0 timers
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index c5166d568b..3170b800c5 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(); |