summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-08 15:21:50 +0100
committerKay Sievers <kay@vrfy.org>2013-11-08 15:21:50 +0100
commita9616cd17fb0a57ac92d39e1ad261caa1039d7b1 (patch)
treef3f9a961c381d1728a969adc3eedd3e0e8b76e63 /src/systemctl
parent7af5a806d12beec2f4e69ef0e69eb02b315916d7 (diff)
systemctl: initialize variables
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 36a305639..7a2431986 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1204,6 +1204,7 @@ static void output_jobs_list(const struct job_info* jobs, unsigned n) {
pager_open_if_enabled();
+ id_len = unit_len = type_len = state_len = 0;
for (j = jobs; j < jobs + n; j++) {
uint32_t id = j->id;
assert(j->name && j->type && j->state);