summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-24 09:58:10 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-24 09:58:10 +0000
commitb9373b7aeaf51441cd36334635022bd4f9523a4b (patch)
treed0155ef14afb8fb0e930b3ccbe795222586ae989 /win32
parenta4fe713cb199934e8b7870850c50fcc24fb5685f (diff)
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/win32/win32.c b/win32/win32.c
index e772117..7d589ec 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2411,13 +2411,12 @@ wait()
char *
win32_getenv(const char *name)
{
- static char *curitem = NULL; /* XXX threadead */
- static DWORD curlen = 0; /* XXX threadead */
+ char *curitem = NULL; /* XXX threadead */
+ DWORD curlen = 0; /* XXX threadead */
DWORD needlen;
- if (!curitem) {
- curlen = 512;
- curitem = ALLOC_N(char, curlen);
- }
+
+ curlen = 512;
+ curitem = ALLOC_N(char, curlen);
needlen = GetEnvironmentVariable(name,curitem,curlen);
if (needlen != 0) {