ruby-changes:68256
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 5 Oct 2021 14:18:42 +0900 (JST)
Subject: [ruby-changes:68256] e42c8c160d (master): add undeclared variables
https://git.ruby-lang.org/ruby.git/commit/?id=e42c8c160d From e42c8c160d17e302f56fdc4af4d54043ed2499df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Tue, 28 Sep 2021 10:49:07 +0900 Subject: add undeclared variables Why did they even exist? --- string.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/string.c b/string.c index 78e2ba923f..953716a1ed 100644 --- a/string.c +++ b/string.c @@ -6897,6 +6897,7 @@ upcase_single(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L6897 while (s < send) { unsigned int c = *(unsigned char*)s; + const rb_encoding *const enc = 0; if (rb_enc_isascii(c, enc) && 'a' <= c && c <= 'z') { *s = 'A' + (c - 'a'); @@ -6987,6 +6988,7 @@ downcase_single(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L6988 while (s < send) { unsigned int c = *(unsigned char*)s; + const rb_encoding *const enc = 0; if (rb_enc_isascii(c, enc) && 'A' <= c && c <= 'Z') { *s = 'a' + (c - 'A'); -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/