proc.c: magic number
* proc.c (rb_method_call): name a magic number. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d4736bcf4d
commit
fcbd6db87d
5
proc.c
5
proc.c
@ -1502,9 +1502,10 @@ rb_method_call(int argc, VALUE *argv, VALUE method)
|
||||
}
|
||||
PUSH_TAG();
|
||||
if (OBJ_TAINTED(method)) {
|
||||
const int safe_level_to_run = 4 /*SAFE_LEVEL_MAX*/;
|
||||
safe = rb_safe_level();
|
||||
if (rb_safe_level() < 4) {
|
||||
rb_set_safe_level_force(4);
|
||||
if (rb_safe_level() < safe_level_to_run) {
|
||||
rb_set_safe_level_force(safe_level_to_run);
|
||||
}
|
||||
}
|
||||
if ((state = EXEC_TAG()) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user