summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/main.c')
-rw-r--r--usr.bin/make/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index 9fde441..a296b2b 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1188,6 +1188,8 @@ main(int argc, char **argv)
/* Install all the flags into the MAKE envariable. */
if (((p = Var_Value(".MAKEFLAGS", VAR_GLOBAL)) != NULL) && *p)
setenv("MAKEFLAGS", p, 1);
+ else
+ setenv("MAKEFLAGS", "", 1);
/*
* For compatibility, look at the directories in the VPATH variable
OpenPOWER on IntegriCloud