From: Lennart Poettering Date: Thu, 28 Oct 2021 14:41:16 +0000 (+0200) Subject: systemctl: suppress second argument of ternary op where we can X-Git-Tag: v250-rc1~383^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e1b4929f53063ee1b1a36f04db7dd55ac1ca35b;p=thirdparty%2Fsystemd.git systemctl: suppress second argument of ternary op where we can --- diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 7e4432d3240..29f1f7fd328 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -2078,7 +2078,7 @@ static int show_system_status(sd_bus *bus) { off = ansi_normal(); } - printf("%s%s%s %s\n", on, special_glyph(SPECIAL_GLYPH_BLACK_CIRCLE), off, arg_host ? arg_host : hn); + printf("%s%s%s %s\n", on, special_glyph(SPECIAL_GLYPH_BLACK_CIRCLE), off, arg_host ?: hn); printf(" State: %s%s%s\n", on, strna(mi.state), off);