mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress uninitialized variable warning with UNINITIALIZED_VAR()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3677a68d81
commit
357d42569f
1 changed files with 1 additions and 1 deletions
2
string.c
2
string.c
|
@ -6304,7 +6304,7 @@ static VALUE
|
|||
rb_str_enumerate_bytes(VALUE str, int wantarray)
|
||||
{
|
||||
long i;
|
||||
VALUE ary = 0;
|
||||
VALUE UNINITIALIZED_VAR(ary);
|
||||
|
||||
if (rb_block_given_p()) {
|
||||
if (wantarray) {
|
||||
|
|
Loading…
Reference in a new issue