From: Lennart Poettering Date: Thu, 15 Aug 2019 17:28:06 +0000 (+0200) Subject: networkctl: avoid outputting '(null)' for LLDP ports without description X-Git-Tag: v243~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e226badc9c2e63ecd78d77651a4de93591c95fbe;p=platform%2Fupstream%2Fsystemd.git networkctl: avoid outputting '(null)' for LLDP ports without description --- diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 654955b..3100a2e 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -893,7 +893,7 @@ static int dump_lldp_neighbors(Table *table, const char *prefix, int ifindex) { "%s on port %s%s%s%s", strna(system_name), strna(port_id), isempty(port_description) ? "" : " (", - port_description, + strempty(port_description), isempty(port_description) ? "" : ")"); if (r < 0) return r;