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 10e9f863465..fed5b9e7ec4 100644
--- a/hash.c
+++ b/hash.c
@@ -895,7 +895,7 @@ env_delete(obj, name)
if (strcmp(nam, "PATH") == 0 && !OBJ_TAINTED(name)) {
path_tainted = 0;
}
- return rb_str_new2(val);
+ return rb_tainted_str_new2(val);
}
return Qnil;
}