diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index f7cededf6f..5bce1c34fb 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -1688,7 +1688,7 @@ int add_match_this_boot(sd_journal *j, const char *machine) { r = id128_get_boot_for_machine(machine, &boot_id); if (r < 0) return log_error_errno(r, "Failed to get boot ID%s%s: %m", - isempty(machine) ? "" : " of container ", machine); + isempty(machine) ? "" : " of container ", strempty(machine)); r = add_match_boot_id(j, boot_id); if (r < 0)