From: Shreenidhi Shedi Date: Sat, 4 Jun 2022 10:26:45 +0000 (+0530) Subject: machinectl: ignore return value of get_process_comm() X-Git-Tag: v252-rc1~867^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d862fd39dd85d855fc60f650831304101a11e53;p=thirdparty%2Fsystemd.git machinectl: ignore return value of get_process_comm() Fixes: CID#1469720 --- diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 64233b89c00..22693dad0a7 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -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);