summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 1e0b9929ef..464eab2146 100644
--- a/string.c
+++ b/string.c
@@ -2880,7 +2880,7 @@ str_null_check(VALUE str, int *w)
int minlen = 1;
if (RB_UNLIKELY(!rb_str_enc_fastpath(str))) {
- rb_encoding *enc = rb_enc_get(str);
+ rb_encoding *enc = rb_str_enc_get(str);
minlen = rb_enc_mbminlen(enc);
if (minlen > 1) {