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:
yugui 2010-12-08 08:09:44 +00:00
parent 751a5cfa0c
commit c9116c68f4
3 changed files with 8 additions and 2 deletions

View file

@ -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++) {