From fd774ee45b592977ebd7cb06cb0049d69219a530 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 12 Nov 2020 12:29:26 +0000 Subject: ash: suppress compiler warning The 64-bit compiler complains that 'status' in dowait() might be used uninitialised. The 32-bit compiler doesn't. Make it shut up. --- shell/ash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/ash.c b/shell/ash.c index b8f75af05..897548f3c 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -4825,6 +4825,7 @@ waitproc(int block, int *status) return err; #else int flags = block == DOWAIT_BLOCK ? 0 : WNOHANG; + *status = 0; return waitpid(-1, status, flags); #endif } -- cgit v1.2.3-55-g6feb