systemctl: avoid unitialized access when showing 0 timers

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-11-11 08:06:14 -05:00
parent 938bcbab12
commit ad83b4c47c
1 changed files with 1 additions and 1 deletions

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();