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-rc2~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e226badc9c2e63ecd78d77651a4de93591c95fbe;p=thirdparty%2Fsystemd.git networkctl: avoid outputting '(null)' for LLDP ports without description --- diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 654955ba087..3100a2e04e2 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;