[syslinux:master] Revert "hdt: remove set-but-unused variable"

syslinux-bot for Erwan Velu erwanaliasr1 at gmail.com
Thu Dec 22 13:18:06 PST 2011


Commit-ID:  b7291d4a98bafb4ac3f1a2ff7df37037f91ad04e
Gitweb:     http://www.syslinux.org/commit/b7291d4a98bafb4ac3f1a2ff7df37037f91ad04e
Author:     Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Tue, 26 Apr 2011 19:32:01 +0200
Committer:  Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Tue, 26 Apr 2011 19:32:01 +0200

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 files changed, 3 insertions(+), 0 deletions(-)

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);
 


More information about the Syslinux-commits mailing list