mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* proc.c (rb_proc_call_with_block): prevent null reference.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
728b092442
commit
85da6ca572
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Jul 31 00:10:20 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* proc.c (rb_proc_call_with_block): prevent null reference.
|
||||
|
||||
Wed Jul 30 22:19:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* parse.y (vtable_free): remove meaningless null check.
|
||||
|
|
2
proc.c
2
proc.c
|
@ -536,7 +536,7 @@ rb_proc_call_with_block(VALUE self, int argc, VALUE *argv, VALUE pass_procval)
|
|||
}
|
||||
|
||||
return vm_invoke_proc(GET_THREAD(), proc, proc->block.self,
|
||||
argc, argv, &pass_proc->block);
|
||||
argc, argv, (pass_proc ? &pass_proc->block : 0));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue