summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-08-26 08:00:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-08-26 08:00:08 +0000
commit9c86ca11f4af174f3bca830f84dd1a1d95573fa3 (patch)
treee31f9b8828d4d970fb7019d30a45ee9e37d25511 /bin
parent99d27825da4b83beeee9b6e8cda897cd642a3b75 (diff)
do not *NULL -- i think this patch is right
Diffstat (limited to 'bin')
-rw-r--r--bin/csh/sem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/csh/sem.c b/bin/csh/sem.c
index b5df5183127..050ed7de427 100644
--- a/bin/csh/sem.c
+++ b/bin/csh/sem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sem.c,v 1.5 1998/05/18 20:38:21 deraadt Exp $ */
+/* $OpenBSD: sem.c,v 1.6 1998/08/26 08:00:07 deraadt Exp $ */
/* $NetBSD: sem.c,v 1.9 1995/09/27 00:38:50 jtc Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)sem.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: sem.c,v 1.5 1998/05/18 20:38:21 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: sem.c,v 1.6 1998/08/26 08:00:07 deraadt Exp $";
#endif
#endif /* not lint */
@@ -171,7 +171,8 @@ execute(t, wanttty, pipein, pipeout)
/*
* Continue for builtins that are part of the scripting language
*/
- if (bifunc->bfunct != dobreak && bifunc->bfunct != docontin &&
+ if (bifunc &&
+ bifunc->bfunct != dobreak && bifunc->bfunct != docontin &&
bifunc->bfunct != doelse && bifunc->bfunct != doend &&
bifunc->bfunct != doforeach && bifunc->bfunct != dogoto &&
bifunc->bfunct != doif && bifunc->bfunct != dorepeat &&