diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-08-14 16:12:58 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-08-14 16:12:58 +0900 |
commit | e658040266fc57422cfe12f5f6655084e695f6e2 (patch) | |
tree | 8960b2e82eceb64d0952f08485b31cfc6592a5d4 | |
parent | 4318aba9c94ebff53e4168886e1a35a24013924f (diff) | |
download | ruby-e658040266fc57422cfe12f5f6655084e695f6e2.tar.gz |
RSTRING_LEN was not used
-rw-r--r-- | re.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |