diff options
author | wanabe <wanabe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-25 02:08:36 +0000 |
---|---|---|
committer | wanabe <wanabe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-25 02:08:36 +0000 |
commit | 1e6a884a4fb20110b139cbd13db18e9c0701bdd5 (patch) | |
tree | ea9b3882cbe30a471886b6172715762d0c3a9e0d /hash.c | |
parent | 63578c725c481abf246b1c1e5b4ddf2942cb5508 (diff) |
* hash.c (ruby_setenv): putenv on msvcrt.dll can't remove empty value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |