]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machinectl: ignore return value of get_process_comm()
authorShreenidhi Shedi <sshedi@vmware.com>
Sat, 4 Jun 2022 10:26:45 +0000 (15:56 +0530)
committerShreenidhi Shedi <sshedi@vmware.com>
Sun, 5 Jun 2022 17:28:01 +0000 (22:58 +0530)
Fixes: CID#1469720
src/machine/machinectl.c

index 64233b89c0099580633b1c6ad2e5953fa25a5146..22693dad0a7580c97d360561503bd1b8f21d8d57 100644 (file)
@@ -533,7 +533,7 @@ static void print_machine_status_info(sd_bus *bus, MachineStatusInfo *i) {
 
                 printf("\t  Leader: %u", (unsigned) i->leader);
 
-                get_process_comm(i->leader, &t);
+                (void) get_process_comm(i->leader, &t);
                 if (t)
                         printf(" (%s)", t);