diff options
author | Erwan Velu <erwanaliasr1@gmail.com> | 2011-04-26 19:32:01 +0200 |
---|---|---|
committer | Erwan Velu <erwanaliasr1@gmail.com> | 2011-04-26 19:32:01 +0200 |
commit | b7291d4a98bafb4ac3f1a2ff7df37037f91ad04e (patch) | |
tree | dc5a5998bf99cb0302f11fa6d3cec61d4dc270f0 /com32/hdt/hdt-dump-disks.c | |
parent | d7d20a78c72237f85d8508c93aa411529d0ac17a (diff) | |
download | syslinux-b7291d4a98bafb4ac3f1a2ff7df37037f91ad04e.tar.gz |
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.
Diffstat (limited to 'com32/hdt/hdt-dump-disks.c')
-rw-r--r-- | com32/hdt/hdt-dump-disks.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/hdt/hdt-dump-disks.c b/com32/hdt/hdt-dump-disks.c index dcbcaa9e..ed2aea36 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); |