summaryrefslogtreecommitdiffstats
path: root/src/network/networkctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-08-15 19:28:06 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-08-16 00:43:34 +0200
commite226badc9c2e63ecd78d77651a4de93591c95fbe (patch)
tree8a681dad3e6c6c4824db76684f79b7e05985f8bc /src/network/networkctl.c
parentsrc/basic/missing_syscall: add comment lines for PR 13319 changes (diff)
downloadsystemd-e226badc9c2e63ecd78d77651a4de93591c95fbe.tar.xz
systemd-e226badc9c2e63ecd78d77651a4de93591c95fbe.zip
networkctl: avoid outputting '(null)' for LLDP ports without description
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r--src/network/networkctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 654955ba08..3100a2e04e 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;