From a9616cd17fb0a57ac92d39e1ad261caa1039d7b1 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 8 Nov 2013 15:21:50 +0100 Subject: systemctl: initialize variables --- src/systemctl/systemctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 36a305639e..7a2431986d 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); -- cgit v1.2.3-54-g00ecf