diff --git a/ext/coverage/coverage.c b/ext/coverage/coverage.c index dd3819cb56..64fe6cb734 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++);