mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
merges r29798 from trunk into ruby_1_9_2.
-- * vm_eval.c (rb_funcall): ensure va_end after va_init_list. Coverity Scan found this bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
751a5cfa0c
commit
c9116c68f4
3 changed files with 8 additions and 2 deletions
|
@ -619,11 +619,12 @@ rb_funcall(VALUE recv, ID mid, int n, ...)
|
|||
{
|
||||
VALUE *argv;
|
||||
va_list ar;
|
||||
va_init_list(ar, n);
|
||||
|
||||
if (n > 0) {
|
||||
long i;
|
||||
|
||||
va_init_list(ar, n);
|
||||
|
||||
argv = ALLOCA_N(VALUE, n);
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue