Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ensure va_end() after va_start()

  • Loading branch information...
commit b2c5f322a00d588b8996a37fca58dbf4507b7985 1 parent 76f826d
@Watson1978 Watson1978 authored
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++) {
Please sign in to comment.
Something went wrong with that request. Please try again.