diff options
author | Evan Hunter <ehunter@broadcom.com> | 2012-10-08 15:32:53 +1100 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2012-10-10 08:23:27 +1000 |
commit | 0cca57a4d835a04638e2a662f16db7ca76165eba (patch) | |
tree | cf6d35170dfdaeb0039c61d9781f4561b36620e4 /jim-exec.c | |
parent | 45e938f72dad52f897d6e89fb41470829e596238 (diff) | |
download | jimtcl-0cca57a4d835a04638e2a662f16db7ca76165eba.zip jimtcl-0cca57a4d835a04638e2a662f16db7ca76165eba.tar.gz jimtcl-0cca57a4d835a04638e2a662f16db7ca76165eba.tar.bz2 |
Fix bug that was causing the system "environ" variable to be freed, which caused mayhem in stdio etc.
Diffstat (limited to 'jim-exec.c')
-rw-r--r-- | jim-exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1392,7 +1392,7 @@ static char **JimSaveEnv(char **env) static void JimRestoreEnv(char **env) { - JimFreeEnv(env, NULL); + JimFreeEnv(env, Jim_GetEnviron()); } static Jim_Obj * |