From a76e2021d00939bad0a18309539d2a48974a44d1 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 3 Aug 2009 20:45:52 +0000 Subject: * thread.c (recursive_push): need to set UNTRUST. [ruby-dev:38997] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 3870fc19a..24b550f75 100644 --- a/thread.c +++ b/thread.c @@ -3354,6 +3354,7 @@ recursive_push(VALUE hash, VALUE obj, VALUE paired_obj) sym = ID2SYM(rb_frame_this_func()); if (NIL_P(hash) || TYPE(hash) != T_HASH) { hash = rb_hash_new(); + OBJ_UNTRUST(hash); rb_thread_local_aset(rb_thread_current(), recursive_key, hash); list = Qnil; } -- cgit