summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-23 07:15:17 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-23 07:15:17 +0000
commitc9b160c0f3f3e784fd5d91ec3310c86e1fdf5798 (patch)
treec15e839a46566ba4d35b257d2d1f596be14bc921 /struct.c
parente5b80d58446ab6882e5d45d5b737e9a6ea70d890 (diff)
downloadruby-c9b160c0f3f3e784fd5d91ec3310c86e1fdf5798.tar.gz
ruby-c9b160c0f3f3e784fd5d91ec3310c86e1fdf5798.tar.xz
ruby-c9b160c0f3f3e784fd5d91ec3310c86e1fdf5798.zip
fix va_start arg.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c2
1 files changed, 1 insertions, 1 deletions
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)));