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

ext/coverage/coverage.c (method_coverage): id was used uninitialized

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2017-09-14 07:45:17 +00:00
parent e43f304478
commit db9f36f3fa

View file

@ -96,7 +96,7 @@ static VALUE
method_coverage(VALUE methods)
{
VALUE ret = rb_hash_new();
int i, id;
int i, id = 0;
for (i = 0; i < RARRAY_LEN(methods); ) {
VALUE method_name = RARRAY_AREF(methods, i++);