MSVC: Avoid warning when testing a TAP suite without PROVE_FLAGS.

Commit 7be5d8df1f surfaced the logic
error, which had no functional implications, by adding "use warnings".
The buildfarm always customizes PROVE_FLAGS, so the warning did not
appear there.  Back-patch to 9.5 (all supported versions).
This commit is contained in:
Noah Misch 2020-06-07 16:27:13 -07:00
parent d10b19e224
commit 5a2398b0b2
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ sub tap_check
unless $config->{tap_tests};
my @flags;
foreach my $arg (0 .. scalar(@_))
foreach my $arg (0 .. scalar(@_) - 1)
{
next unless $_[$arg] =~ /^PROVE_FLAGS=(.*)/;
@flags = split(/\s+/, $1);