1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

string.c: suppress warning

* string.c (rb_str_enumerate_bytes): suppress a uninitialized variable
  warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-11-26 19:19:51 +00:00
parent 943b664eea
commit cd246ff254

View file

@ -6304,7 +6304,7 @@ static VALUE
rb_str_enumerate_bytes(VALUE str, int wantarray)
{
long i;
VALUE ary;
VALUE ary = 0;
if (rb_block_given_p()) {
if (wantarray) {