summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2019-05-21 17:10:50 +0000
committerMarc Espie <espie@cvs.openbsd.org>2019-05-21 17:10:50 +0000
commitfed623bfae1836b5d85a1d702bc527325d424c92 (patch)
tree685f115d0a3d8555f2a9744b6b09b5aacdf9a1ea /usr.bin/make
parente51583af9c1ba487cb0e10dae1325d69d8a8a4d0 (diff)
fix very stupid bug.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/engine.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/make/engine.c b/usr.bin/make/engine.c
index 296a2dce08f..4e6f1762f8e 100644
--- a/usr.bin/make/engine.c
+++ b/usr.bin/make/engine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: engine.c,v 1.55 2018/11/27 09:33:48 espie Exp $ */
+/* $OpenBSD: engine.c,v 1.56 2019/05/21 17:10:49 espie Exp $ */
/*
* Copyright (c) 2012 Marc Espie.
*
@@ -552,6 +552,9 @@ recheck_command_for_shell(char **av)
if (strcmp(av[0], "exec") == 0)
av++;
+ if (!av[0])
+ return NULL;
+
for (p = runsh; *p; p++)
if (strcmp(av[0], *p) == 0)
return NULL;