X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Frun-program.c;h=367dd77bc497042a89c8ae77a3adeb714a9da753;hb=c712f88b26cd7547ee984b90e18c134401335bc3;hp=c91107441c2d28d5e812067b18bcddb1fd886e6b;hpb=2bfd703aaa0a56039b2831fcbc8f11739dc158b7;p=sbcl.git diff --git a/src/runtime/run-program.c b/src/runtime/run-program.c index c911074..367dd77 100644 --- a/src/runtime/run-program.c +++ b/src/runtime/run-program.c @@ -193,7 +193,9 @@ int spawn(char *program, char *argv[], int sin, int sout, int serr, if (fd != channel[1]) close(fd); #endif - environ = envp; + if (envp) { + environ = envp; + } /* Exec the program. */ if (search) execvp(program, argv);