summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
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 6b7c79d924..5cdd2176b8 100644
--- a/marshal.c
+++ b/marshal.c
@@ -1406,7 +1406,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
}
str = r_entry(rb_reg_new_str(str, options), arg);
rb_copy_generic_ivar(str, v);
- v = r_leave(v, arg);
+ v = r_leave(str, arg);
}
break;