diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -4937,10 +4937,8 @@ rb_pat_search(VALUE pat, VALUE str, long pos, int set_backref_str) pos = rb_strseq_index(str, pat, pos, 1); if (set_backref_str) { if (pos >= 0) { - VALUE match; str = rb_str_new_frozen(str); rb_backref_set_string(str, pos, RSTRING_LEN(pat)); - match = rb_backref_get(); } else { rb_backref_set(Qnil); |