From c9b160c0f3f3e784fd5d91ec3310c86e1fdf5798 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 23 Nov 2007 07:15:17 +0000 Subject: fix va_start arg. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/struct.c b/struct.c index ebf2049b7..1bca90b63 100644 --- a/struct.c +++ b/struct.c @@ -233,7 +233,7 @@ rb_struct_define_without_accessor(char *class_name, VALUE super, rb_alloc_func_t char *name; members = rb_ary_new2(0); - va_start(ar, super); + va_start(ar, alloc); i = 0; while ((name = va_arg(ar, char*)) != NULL) { rb_ary_push(members, ID2SYM(rb_intern(name))); -- cgit