machinectl: ignore return value of get_process_comm()

Fixes: CID#1469720
This commit is contained in:
Shreenidhi Shedi 2022-06-04 15:56:45 +05:30
parent a30c9e7176
commit 8d862fd39d

View 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);