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 1142028441..a9adc6200a 100644
--- a/string.c
+++ b/string.c
@@ -2151,7 +2151,7 @@ rb_str_clear(VALUE str)
FL_UNSET(str, STR_NOCAPA);
FL_SET(str, ELTS_SHARED);
RSTRING(str)->ptr = null_str;
- RARRAY(str)->len = 0;
+ RSTRING(str)->len = 0;
return str;
}