diff options
author | Ron Yorston <rmy@pobox.com> | 2020-11-12 12:29:26 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-11-12 12:29:26 +0000 |
commit | fd774ee45b592977ebd7cb06cb0049d69219a530 (patch) | |
tree | 9274f365acfd47774a1bc8011e1100b7fd62a814 | |
parent | 193991ecf2efd176d9cb9f37fef3bec6b98a76e9 (diff) | |
download | busybox-w32-fd774ee45b592977ebd7cb06cb0049d69219a530.tar.gz busybox-w32-fd774ee45b592977ebd7cb06cb0049d69219a530.tar.bz2 busybox-w32-fd774ee45b592977ebd7cb06cb0049d69219a530.zip |
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.
-rw-r--r-- | shell/ash.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
4825 | return err; | 4825 | return err; |
4826 | #else | 4826 | #else |
4827 | int flags = block == DOWAIT_BLOCK ? 0 : WNOHANG; | 4827 | int flags = block == DOWAIT_BLOCK ? 0 : WNOHANG; |
4828 | *status = 0; | ||
4828 | return waitpid(-1, status, flags); | 4829 | return waitpid(-1, status, flags); |
4829 | #endif | 4830 | #endif |
4830 | } | 4831 | } |