networkctl: avoid outputting '(null)' for LLDP ports without description

This commit is contained in:
Lennart Poettering
2019-08-16 07:43:34 +09:00
committed by Yu Watanabe
parent 9841802955
commit e226badc9c
+1 -1
View File
@@ -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;