Test variable before use
This commit is contained in:
committed by
Axel Beckert
parent
14846e85fd
commit
9e738bfb5f
@@ -305,6 +305,7 @@ sub importPartitionsFromEnvironment
|
||||
{
|
||||
@PARTITIONS = ();
|
||||
|
||||
return unless exists $ENV{'NUMPARTITIONS'};
|
||||
for ( my $i = 1 ; $i <= $ENV{ 'NUMPARTITIONS' } ; $i++ )
|
||||
{
|
||||
my @parts = split( /:/, $ENV{ 'PARTITION' . $i }, 7 );
|
||||
|
||||
Reference in New Issue
Block a user