summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index 0b863bd637..21344c5e57 100644
--- a/hash.c
+++ b/hash.c
@@ -2129,6 +2129,7 @@ ruby_setenv(const char *name, const char *value)
buf = ALLOCA_N(char, len);
snprintf(buf, len, "%s=", name);
putenv(buf);
+ SetEnvironmentVariable(name, 0);
}
#elif defined(HAVE_SETENV) && defined(HAVE_UNSETENV)
#undef setenv