diff options
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r-- | perl-install/partition_table.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index 11d29f981..a4bb4bbb8 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -196,7 +196,7 @@ sub adjust_main_extended($) { $l->{start} = $hd->{primary}->{extended}->{start} = $start; $l->{size} = $hd->{primary}->{extended}->{size} = $end - $start; } - unless (@{$hd->{extended}} || !$hd->{primary}->{extended}) { + unless (@{$hd->{extended} || []} || !$hd->{primary}->{extended}) { %{$hd->{primary}->{extended}} = (); # modify the raw entry delete $hd->{primary}->{extended}; } |