diff options
author | 2019-05-21 17:10:49 +0000 | |
---|---|---|
committer | 2019-05-21 17:10:49 +0000 | |
commit | 096da974cba791d258c66e176af6f4c53debfa87 (patch) | |
tree | 2dff90dca6de83e6e2e4311c8abdfa4dab8650f3 | |
parent | while writing new code, I just figured out I fucked up (diff) | |
download | wireguard-openbsd-096da974cba791d258c66e176af6f4c53debfa87.tar.xz wireguard-openbsd-096da974cba791d258c66e176af6f4c53debfa87.zip |
fix very stupid bug.
-rw-r--r-- | usr.bin/make/engine.c | 5 |
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; |