Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
mxmount: Fix undefined array usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jun 16, 2015
1 parent 7259906 commit a0a1b72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mxmount
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ system("exportfs -ra");
sub add_data0_if_not_present {
my $allmp = $D{$hostname};

$allmp = [] unless (defined $allmp);

foreach my $mp (sort { $a->{mountpoint} cmp $b->{mountpoint} } @$allmp ) {
if ($mp->{label} eq "data0") {
return;
Expand Down

0 comments on commit a0a1b72

Please sign in to comment.