1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

runtests: fix "use of undefined value" warning in -R handling

This commit is contained in:
Daniel Stenberg 2017-05-08 10:08:48 +02:00
parent e2b394106d
commit e3f84efc32

View File

@ -5179,7 +5179,11 @@ if($scrambleorder) {
# scramble the order of the test cases
my @rand;
while($TESTCASES) {
my @all = split(/ /, $TESTCASES);
my @all = split(/ +/, $TESTCASES);
if(!$all[0]) {
# if the first is blank, shift away it
shift @all;
}
my $r = rand @all;
push @rand, $all[$r];
$all[$r]="";