diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-11-19 19:54:35 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-11-19 19:54:35 +0000 |
commit | 910c9630ff079f39a9b071b57bc02a0649dc97c0 (patch) | |
tree | 55571c2a695608fbe1391619c77f277df9a3ac50 /bin | |
parent | 831fb61f345d2dfeb6a8641a72153a693e9c00a7 (diff) |
thou shalt not follow the NULL pointer, that way lies madness
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ksh/jobs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ksh/jobs.c b/bin/ksh/jobs.c index a65d03df955..3c05d8fcf88 100644 --- a/bin/ksh/jobs.c +++ b/bin/ksh/jobs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: jobs.c,v 1.8 1998/10/29 04:09:20 millert Exp $ */ +/* $OpenBSD: jobs.c,v 1.9 1998/11/19 19:54:34 millert Exp $ */ /* * Process and job control @@ -782,7 +782,8 @@ waitfor(cp, sigp) } /* at&t ksh will wait for stopped jobs - we don't */ - rv = j_waitj(j, flags, "jw:waitfor"); + if (j) + rv = j_waitj(j, flags, "jw:waitfor"); #ifdef JOB_SIGS sigprocmask(SIG_SETMASK, &omask, (sigset_t *) 0); |