From fa7d45a72077be9db0a4cf8fc8d8b5ec640c41ed Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 6 Jun 2003 09:24:59 +0000 Subject: * 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 --- marshal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'marshal.c') diff --git a/marshal.c b/marshal.c index a0c4680a1..4718f7920 100644 --- a/marshal.c +++ b/marshal.c @@ -1284,7 +1284,6 @@ marshal_load(argc, argv) int major, minor; VALUE v; struct load_arg arg; - volatile VALUE hash; /* protect from GC */ rb_scan_args(argc, argv, "11", &port, &proc); if (rb_respond_to(port, rb_intern("to_str"))) { @@ -1319,7 +1318,7 @@ marshal_load(argc, argv) } arg.symbol = st_init_numtable(); - arg.data = hash = rb_hash_new(); + arg.data = rb_hash_new(); if (NIL_P(proc)) arg.proc = 0; else arg.proc = proc; v = rb_ensure(load, (VALUE)&arg, load_ensure, (VALUE)&arg); -- cgit