summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-06 09:24:59 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-06 09:24:59 +0000
commitfa7d45a72077be9db0a4cf8fc8d8b5ec640c41ed (patch)
tree53dafc7d4f53ccc940badbc36862ad24cc1da929 /eval.c
parenta5bbba9b05c5a449d2a0b612539d61b1ae0155a9 (diff)
downloadruby-fa7d45a72077be9db0a4cf8fc8d8b5ec640c41ed.tar.gz
ruby-fa7d45a72077be9db0a4cf8fc8d8b5ec640c41ed.tar.xz
ruby-fa7d45a72077be9db0a4cf8fc8d8b5ec640c41ed.zip
* eval.c (ruby_cleanup): $SAFE is turned off in the finalization.
Each END proc should preserve its own $SAFE level. [ruby-core:01119] * marshal.c (marshal_load): remove unused variable "hash". [ruby-core:01120] * hash.c (env_str_new): freeze strings from ENV. [ruby-talk:72860] * array.c (rb_ary_first): optional argument to retrieve first n elements. * array.c (rb_ary_last): optional argument to retrieve last n elements. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 46245360c..7a8d1d5ea 100644
--- a/eval.c
+++ b/eval.c
@@ -1330,6 +1330,7 @@ ruby_cleanup(ex)
{
int state;
+ ruby_safe_level = 0;
PUSH_TAG(PROT_NONE);
PUSH_ITER(ITER_NOT);
if ((state = EXEC_TAG()) == 0) {