aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2021-05-29 15:33:22 -0500
committerRob Landley <rob@landley.net>2021-05-29 15:33:22 -0500
commite2975ef43ea4493f3fd666a10dd89e47909a3efd (patch)
tree392362386be343421194508e280ac6e9a96aeb6c
parent657cc63108993c8b5a8eb69ebba5a708022a786a (diff)
downloadtoybox-e2975ef43ea4493f3fd666a10dd89e47909a3efd.tar.gz
Dear gcc: no, it really can't be used uninitalized.
-rw-r--r--toys/pending/sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/sh.c b/toys/pending/sh.c
index b4df9974..f3d0610a 100644
--- a/toys/pending/sh.c
+++ b/toys/pending/sh.c
@@ -2973,7 +2973,7 @@ char *show_job(struct sh_process *pp, char dash)
// Wait for pid to exit and remove from jobs table, returning process or 0.
struct sh_process *wait_job(int pid, int nohang)
{
- struct sh_process *pp;
+ struct sh_process *pp = pp;
int ii, status, minus, plus;
if (TT.jobs.c<1) return 0;