Fix display if no partition type

This commit is contained in:
Jamie Cameron
2012-04-30 14:00:12 -07:00
parent 3695f7eda6
commit 78c2990582

View File

@@ -639,7 +639,7 @@ foreach $d (&fdisk::list_disks_partitions()) {
$skip{$p->{'device'}});
local @st = &device_status($p->{'device'});
next if (@st);
$tag = &fdisk::tag_name($p->{'type'});
$tag = $p->{'type'} ? &fdisk::tag_name($p->{'type'}) : undef;
$p->{'blocks'} =~ s/\+$//;
push(@disks, [ $p->{'device'},
$p->{'desc'}.