diff options
author | 1998-11-19 19:54:34 +0000 | |
---|---|---|
committer | 1998-11-19 19:54:34 +0000 | |
commit | da9172d7c9069a7997b7062b55ccb3b8e074a79f (patch) | |
tree | a97166bd6155c145fc52f303080c4247d155e2b1 | |
parent | disable FACK/SACK again; they still panic alphas. Sorry Niels, but you have to do better... (diff) | |
download | wireguard-openbsd-da9172d7c9069a7997b7062b55ccb3b8e074a79f.tar.xz wireguard-openbsd-da9172d7c9069a7997b7062b55ccb3b8e074a79f.zip |
thou shalt not follow the NULL pointer, that way lies madness
-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); |