diff options
-rw-r--r-- | makeenv.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |