aboutsummaryrefslogtreecommitdiffstats
path: root/makeenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'makeenv.c')
-rw-r--r--makeenv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/makeenv.c b/makeenv.c
index f71bc00..2f88f2d 100644
--- a/makeenv.c
+++ b/makeenv.c
@@ -317,8 +317,12 @@ main(int argc, char *argv[])
put_options(line);
} else if (has_equals) {
trim_around_equals(line);
- if (*line != '=' && *line != '#')
+ if (*line == '=') {
+ fprintf(stderr, "%s: empty variable name listed in .makeenv\n", argv0);
+ return 125;
+ } else if (*line != '#') {
put_macro(line);
+ }
} else {
if (*line && *line != '#')
put_targets(line);