diff options
Diffstat (limited to 'marshal.c')
-rw-r--r-- | marshal.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1086,7 +1086,9 @@ r_ivar(VALUE obj, struct load_arg *arg) int idx = rb_enc_find_index(StringValueCStr(val)); if (idx > 0) rb_enc_associate_index(obj, idx); } - rb_ivar_set(obj, id, val); + else { + rb_ivar_set(obj, id, val); + } } } } |