mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* proc.c (proc_dup): should copy safe_level from src proc
properly. a patch from Keita Yamaguchi <keita.yamaguchi at gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
79fdbe0519
commit
989c8ed00a
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu May 22 05:45:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* proc.c (proc_dup): should copy safe_level from src proc
|
||||
properly. a patch from Keita Yamaguchi
|
||||
<keita.yamaguchi at gmail.com>
|
||||
|
||||
Thu May 22 02:46:08 2008 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/imap.rb: do not use Thread#raise. [ruby-dev:34739]
|
||||
|
|
2
proc.c
2
proc.c
|
@ -92,7 +92,7 @@ proc_dup(VALUE self)
|
|||
dst->block = src->block;
|
||||
dst->block.proc = procval;
|
||||
dst->envval = src->envval;
|
||||
dst->safe_level = dst->safe_level;
|
||||
dst->safe_level = src->safe_level;
|
||||
dst->is_lambda = src->is_lambda;
|
||||
|
||||
return procval;
|
||||
|
|
Loading…
Reference in a new issue