From: Tilman Sauerbeck Date: Fri, 18 Mar 2005 18:49:46 +0000 (+0000) Subject: Oops, initialize the 'elements' array correctly. X-Git-Url: http://git.code-monkey.de/?p=ruby-esmart.git;a=commitdiff_plain;h=fb07a428f755a86729628f3aec807c9765383b0b Oops, initialize the 'elements' array correctly. --- diff --git a/src/esmart_container/rb_esmart_container.c b/src/esmart_container/rb_esmart_container.c index 3269c37..34c8e26 100644 --- a/src/esmart_container/rb_esmart_container.c +++ b/src/esmart_container/rb_esmart_container.c @@ -1,5 +1,5 @@ /* - * $Id: rb_esmart_container.c 286 2005-03-15 18:05:42Z tilman $ + * $Id: rb_esmart_container.c 297 2005-03-18 18:49:46Z tilman $ * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * @@ -60,7 +60,7 @@ static VALUE c_new (VALUE klass, VALUE evas) argv[0] = evas; rb_obj_call_init (self, 1, argv); - rb_iv_set (self, "@elements", rb_ary_new ()); + cont->elements = rb_ary_new (); return self; }