ruby-cvs:23535
From: matz ruby-lang.org
Date: Mon, 5 May 2008 19:52:45 +0900 (JST)
Subject: [ruby-cvs:23535] Ruby:r16295 (trunk): * struct.c (rb_struct_s_def): Struct.new(0) should not SEGV.
matz 2008-05-05 19:52:44 +0900 (Mon, 05 May 2008)
New Revision: 16295
Modified files:
trunk/ChangeLog
trunk/struct.c
Log:
* struct.c (rb_struct_s_def): Struct.new(0) should not SEGV.
based on the patch from wanabe <s.wanabe at gmail.com> in
[ruby-dev:34594].
* struct.c (make_struct): call to_str on name object.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16295&r2=16294&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/struct.c?r1=16295&r2=16294&diff_format=u