mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
RSTRING_LEN was not used
This commit is contained in:
parent
4318aba9c9
commit
e658040266
1 changed files with 1 additions and 3 deletions
4
re.c
4
re.c
|
@ -3518,9 +3518,7 @@ rb_reg_quote(VALUE str)
|
|||
}
|
||||
t = RSTRING_PTR(tmp);
|
||||
/* copy upto metacharacter */
|
||||
const char *p;
|
||||
long MAYBE_UNUSED(n);
|
||||
RSTRING_GETMEM(str, p, n);
|
||||
const char *p = RSTRING_PTR(str);
|
||||
memcpy(t, p, s - p);
|
||||
t += s - p;
|
||||
|
||||
|
|
Loading…
Reference in a new issue