diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -979,7 +979,13 @@ do_setup_env(Session *s, const char *shell) | |||
979 | * The Windows environment contains some setting which are | 979 | * The Windows environment contains some setting which are |
980 | * important for a running system. They must not be dropped. | 980 | * important for a running system. They must not be dropped. |
981 | */ | 981 | */ |
982 | copy_environment(environ, &env, &envsize); | 982 | { |
983 | char **p; | ||
984 | |||
985 | p = fetch_windows_environment(); | ||
986 | copy_environment(p, &env, &envsize); | ||
987 | free_windows_environment(p); | ||
988 | } | ||
983 | #endif | 989 | #endif |
984 | 990 | ||
985 | #ifdef GSSAPI | 991 | #ifdef GSSAPI |