From e658040266fc57422cfe12f5f6655084e695f6e2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 14 Aug 2020 16:12:58 +0900 Subject: RSTRING_LEN was not used --- re.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 're.c') diff --git a/re.c b/re.c index 63cfc026de..a967c93452 100644 --- a/re.c +++ b/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; -- cgit v1.2.3