summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-11-19 19:54:34 +0000
committermillert <millert@openbsd.org>1998-11-19 19:54:34 +0000
commitda9172d7c9069a7997b7062b55ccb3b8e074a79f (patch)
treea97166bd6155c145fc52f303080c4247d155e2b1
parentdisable FACK/SACK again; they still panic alphas. Sorry Niels, but you have to do better... (diff)
downloadwireguard-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.c5
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);