aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hash.c b/hash.c
index 8de71db268..f649f20d06 100644
--- a/hash.c
+++ b/hash.c
@@ -2714,10 +2714,6 @@ env_aset(VALUE obj, VALUE nm, VALUE val)
{
char *name, *value;
- if (rb_safe_level() >= 4) {
- rb_raise(rb_eSecurityError, "can't change environment variable");
- }
-
if (NIL_P(val)) {
env_delete(obj, nm);
return Qnil;