From 418cf21224309faa838c77abd87285c977caf20a Mon Sep 17 00:00:00 2001 From: Matteo Golin Date: Wed, 27 May 2026 19:56:44 -0400 Subject: [PATCH] apps/nxinit: Fix uninitialized variable Without debug enabled, the code would not compile due to checking `WIFEXITED(wstatus)` when `wstatus` was uninitialized. Signed-off-by: Matteo Golin --- system/nxinit/init.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/system/nxinit/init.c b/system/nxinit/init.c index d501abcad..1a542f796 100644 --- a/system/nxinit/init.c +++ b/system/nxinit/init.c @@ -80,13 +80,7 @@ static void reap_process(FAR struct service_manager_s *sm, for (; ; ) { - pid = waitpid(-1, -#ifdef CONFIG_SYSTEM_NXINIT_DEBUG - &wstatus, -#else - NULL, -#endif - WNOHANG); + pid = waitpid(-1, &wstatus, WNOHANG); if (pid <= 0) { break;