summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-11-11 08:06:14 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-11-11 10:55:51 -0500
commitad83b4c47cb5b48cfd0a14537cee0c830eec2b74 (patch)
treeeb4cdfb8d0c64169bbdd9ccd1e60160de5180f0c /src/systemctl/systemctl.c
parent938bcbab125298b9c49946ca0bd0b47890e4d140 (diff)
systemctl: avoid unitialized access when showing 0 timers
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c2
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();