summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-14 02:53:54 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-14 02:53:54 +0000
commitc171ca1efdbc5553f9ba94e9ce4e7d868f3cb298 (patch)
treed9e42ae67952db1604e91347f1415a92bca2de94 /ext
parent68394b27ba9b22f200ba5db90c0f3cb35fa41ebb (diff)
ext/coverage/coverage.c: Fix the condition for non-experimental mode
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-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 91cfca8..a286cf9 100644
--- a/ext/coverage/coverage.c
+++ b/ext/coverage/coverage.c
@@ -30,7 +30,7 @@ rb_coverage_start(int argc, VALUE *argv, VALUE klass)
if (!e || !*e) experimental_mode_enabled = 0;
}
- if (!experimental_mode_enabled)
+ if (!experimental_mode_enabled && argc != 0)
rb_error_arity(argc, 0, 0);
rb_scan_args(argc, argv, "01", &opt);