summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-13 11:21:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-13 11:21:55 +0000
commit4fbc270cd5116dcfc0dc8677c5c0937e20addcf9 (patch)
tree39b25e78c20353b32843d8d1a95ebae533f91059 /marshal.c
parentecb962058ad33f722f749391d648dd145e940e44 (diff)
* 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
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index 4955fff20d..6b7c79d924 100644
--- a/marshal.c
+++ b/marshal.c
@@ -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;