mirror of
https://github.com/mirror/make.git
synced 2025-02-09 03:10:31 +08:00
* src/main.c (main): [SV 59601] Check for malformed env. variables
This commit is contained in:
parent
58a37927e6
commit
950f3d305f
@ -1364,7 +1364,7 @@ main (int argc, char **argv, char **envp)
|
||||
enum variable_export export = v_export;
|
||||
size_t len;
|
||||
|
||||
while (! STOP_SET (*ep, MAP_EQUALS))
|
||||
while (! STOP_SET (*ep, MAP_EQUALS|MAP_NUL))
|
||||
++ep;
|
||||
|
||||
/* If there's no equals sign it's a malformed environment. Ignore. */
|
||||
|
Loading…
Reference in New Issue
Block a user