summaryrefslogtreecommitdiff
path: root/ext/coverage
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-14 07:45:17 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-14 07:45:17 +0000
commitdb9f36f3fae55bbf5966e597e5f2bd07116c37ad (patch)
tree7d0176eef8adceff57981861e29a00faff535d95 /ext/coverage
parente43f304478fddea3ee8c53a82d5f9ae83b379768 (diff)
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
Diffstat (limited to 'ext/coverage')
-rw-r--r--ext/coverage/coverage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/coverage/coverage.c b/ext/coverage/coverage.c
index dd3819c..64fe6cb 100644
--- a/ext/coverage/coverage.c
+++ b/ext/coverage/coverage.c
@@ -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++);