1
0
Fork 0
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:
naruse 2012-11-27 01:35:13 +00:00
parent 3677a68d81
commit 357d42569f

View file

@ -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) {