mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Use NULLSTR_EMPTY
Instead of repetitive: s ? s : "" use NULLSTR_EMPTY. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
@@ -2389,7 +2389,7 @@ cmdDomIfAddr(vshControl *ctl, const vshCmd *cmd)
|
||||
if (full || !j)
|
||||
vshPrint(ctl, " %-10s %-17s %s\n",
|
||||
iface->name,
|
||||
iface->hwaddr ? iface->hwaddr : "", ip_addr_str);
|
||||
NULLSTR_EMPTY(iface->hwaddr), ip_addr_str);
|
||||
else
|
||||
vshPrint(ctl, " %-10s %-17s %s\n",
|
||||
"-", "-", ip_addr_str);
|
||||
|
Reference in New Issue
Block a user