1
0
mirror of synced 2026-02-10 01:29:56 +00:00

Test variable before use

This commit is contained in:
Stéphane Jourdois
2010-07-11 14:43:11 +02:00
committed by Axel Beckert
parent 14846e85fd
commit 9e738bfb5f

View File

@@ -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 );