* src/main.c (main): [SV 59601] Check for malformed env. variables

This commit is contained in:
Paul Smith 2020-12-02 17:27:55 -05:00
parent 58a37927e6
commit 950f3d305f

View file

@ -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. */