From b7291d4a98bafb4ac3f1a2ff7df37037f91ad04e Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Tue, 26 Apr 2011 19:32:01 +0200 Subject: [PATCH] Revert "hdt: remove set-but-unused variable" This reverts commit 842d7e35ccd8cd89105faf0266497e838d96c8b3. In fact, you found a real bug. I missed at dumping some information. So I revert this commit and then add the missing code. --- com32/hdt/hdt-dump-disks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/com32/hdt/hdt-dump-disks.c b/com32/hdt/hdt-dump-disks.c index dcbcaa9..ed2aea3 100644 --- a/com32/hdt/hdt-dump-disks.c +++ b/com32/hdt/hdt-dump-disks.c @@ -42,6 +42,7 @@ static void show_partition_information(struct driveinfo *drive_info, char ostype[64]={0}; char *parttype; unsigned int start, end; + bool bootable = false; int i = nb_partitions_seen; start = partition_offset; @@ -52,6 +53,8 @@ static void show_partition_information(struct driveinfo *drive_info, get_label(ptab->ostype, &parttype); get_bootloader_string(drive_info, ptab, bootloader_name, 9); + if (ptab->active_flag == 0x80) + bootable=true; snprintf(ostype,sizeof(ostype),"%02X",ptab->ostype); -- 2.7.4