[systemd-commits] src/systemctl

Kay Sievers kay at kemper.freedesktop.org
Fri Nov 8 06:22:07 PST 2013


 src/systemctl/systemctl.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit a9616cd17fb0a57ac92d39e1ad261caa1039d7b1
Author: Kay Sievers <kay at vrfy.org>
Date:   Fri Nov 8 15:21:50 2013 +0100

    systemctl: initialize variables

diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 36a3056..7a24319 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);



More information about the systemd-commits mailing list