summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/session.c b/session.c
index ee4008acf..89e1ec892 100644
--- a/session.c
+++ b/session.c
@@ -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