summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index bcc8374a64..5d8d0fb9ef 100644
--- a/parse.y
+++ b/parse.y
@@ -10683,7 +10683,7 @@ rb_str_dynamic_intern(VALUE str)
if (enc != ascii) {
if (sym_check_asciionly(str)) {
str = rb_str_dup(str);
- rb_enc_associate(dup, ascii);
+ rb_enc_associate(str, ascii);
OBJ_FREEZE(str);
}
}