summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 963d9ae..d6bfc8a 100644
--- a/hash.c
+++ b/hash.c
@@ -3899,7 +3899,7 @@ env_assoc(VALUE env, VALUE key)
s = env_name(key);
e = getenv(s);
- if (e) return rb_assoc_new(key, rb_tainted_str_new2(e));
+ if (e) return rb_assoc_new(key, env_str_new2(e));
return Qnil;
}