From 5ba97fc0a967e0c07f00bce605f5bdd8484d716c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 14 Nov 2020 09:06:35 +0900 Subject: [PATCH] systemctl: fix minor coding style issue --- src/systemctl/systemctl-list-units.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/systemctl/systemctl-list-units.c b/src/systemctl/systemctl-list-units.c index e6a530ed5b1..b747cb5a552 100644 --- a/src/systemctl/systemctl-list-units.c +++ b/src/systemctl/systemctl-list-units.c @@ -186,7 +186,8 @@ static int output_units_list(const UnitInfo *unit_infos, unsigned c) { "LOAD = Reflects whether the unit definition was properly loaded.\n" "ACTIVE = The high-level unit activation state, i.e. generalization of SUB.\n" "SUB = The low-level unit activation state, values depend on unit type."); - puts(job_count ? "JOB = Pending job for the unit.\n" : ""); + if (job_count > 0) + puts("JOB = Pending job for the unit.\n"); on = ansi_highlight(); off = ansi_normal(); } else { -- 2.47.3