]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: suppress second argument of ternary op where we can
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2021 14:41:16 +0000 (16:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2021 14:41:16 +0000 (16:41 +0200)
src/systemctl/systemctl-show.c

index 7e4432d32402114ea1f961debd61542e99cf9d55..29f1f7fd328762d4f2f04e0b0e5deea85ae0ccca 100644 (file)
@@ -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);