systemctl: avoid unitialized access when showing 0 timers

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-11-11 10:55:51 -05:00
parent 938bcbab12
commit ad83b4c47c
+1 -1
View 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();