aboutsummaryrefslogtreecommitdiff
path: root/win32/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/env.c')
-rw-r--r--win32/env.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/env.c b/win32/env.c
index 4d4e9c8fd..8e54c4c5e 100644
--- a/win32/env.c
+++ b/win32/env.c
@@ -100,6 +100,10 @@ int mingw_putenv(const char *env)
100 break; 100 break;
101 } 101 }
102 } 102 }
103
104 /* tell the OS environment about the change */
105 envstr[s - env] = '\0';
106 SetEnvironmentVariable(envstr, "");
103 free(envstr); 107 free(envstr);
104 } 108 }
105 109