From e2975ef43ea4493f3fd666a10dd89e47909a3efd Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 29 May 2021 15:33:22 -0500 Subject: Dear gcc: no, it really can't be used uninitalized. --- toys/pending/sh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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; -- cgit v1.2.3