]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
logs-show: add missing strempty()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 27 Apr 2024 08:50:49 +0000 (17:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 10 May 2024 00:35:24 +0000 (09:35 +0900)
Follow-up for 8e976dc9209853d5d4d2db3016289f2a5ab99fd9.

src/shared/logs-show.c

index f7cededf6f116e8423a2f5d73b17a7116c58d7ac..5bce1c34fb4c3cc42f9b0c18fafd7f0c40807b69 100644 (file)
@@ -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)