1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* marshal.c (r_object0): should not shadow outer variable not to

return Qnil always.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-07-13 11:21:55 +00:00
parent ecb962058a
commit 4fbc270cd5
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Jul 13 20:21:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* marshal.c (r_object0): should not shadow outer variable not to
return Qnil always.
Mon Jul 13 19:41:05 2009 NARUSE, Yui <naruse@ruby-lang.org>
* marshal.c (r_object0): copy instance variables to new regexp.

View file

@ -1393,7 +1393,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
{
volatile VALUE str = r_bytes(arg);
int options = r_byte(arg);
VALUE v = rb_reg_new("", 0, options);
v = rb_reg_new("", 0, options);
if (ivp) {
r_ivar(v, arg);
*ivp = Qfalse;