Skip to content
Browse files

ensure va_end() after va_start()

  • Loading branch information...
1 parent 76f826d commit b2c5f322a00d588b8996a37fca58dbf4507b7985 @Watson1978 Watson1978 committed Jan 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 vm_eval.c
View
3 vm_eval.c
@@ -88,11 +88,12 @@ rb_funcall(VALUE recv, ID mid, int n, ...)
{
VALUE *argv;
va_list ar;
- va_start(ar, n);
if (n > 0) {
long i;
+ va_start(ar, n);
+
argv = ALLOCA_N(VALUE, n);
for (i = 0; i < n; i++) {

0 comments on commit b2c5f32

Please sign in to comment.
Something went wrong with that request. Please try again.