mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-26 07:34:04 +03: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:
@@ -1047,7 +1047,7 @@ cmdDaemonLogFilters(vshControl *ctl, const vshCmd *cmd)
|
||||
}
|
||||
|
||||
vshPrintExtra(ctl, " %-15s", _("Logging filters: "));
|
||||
vshPrint(ctl, "%s\n", filters ? filters : "");
|
||||
vshPrint(ctl, "%s\n", NULLSTR_EMPTY(filters));
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -1101,7 +1101,7 @@ cmdDaemonLogOutputs(vshControl *ctl, const vshCmd *cmd)
|
||||
}
|
||||
|
||||
vshPrintExtra(ctl, " %-15s", _("Logging outputs: "));
|
||||
vshPrint(ctl, "%s\n", outputs ? outputs : "");
|
||||
vshPrint(ctl, "%s\n", NULLSTR_EMPTY(outputs));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user