mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
machinectl: ignore return value of get_process_comm()
Fixes: CID#1469720
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user