[syslinux:master] hdt: Dumping disk failed when disk are present

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


Commit-ID:  51431d2c9992a99f58378056523256757edb0fb3
Gitweb:     http://www.syslinux.org/commit/51431d2c9992a99f58378056523256757edb0fb3
Author:     Erwan Velu <erwanaliasr1 at gmail.com>
AuthorDate: Wed, 21 Sep 2011 21:44:47 +0200
Committer:  Erwan Velu <erwanaliasr1 at gmail.com>
CommitDate: Thu, 22 Sep 2011 22:44:33 +0200

hdt: Dumping disk failed when disk are present

When physical disks were present, the computed items were not flushed
and so not present on the disk file.

Thanks to pscheie for reporting this.

---
 com32/hdt/hdt-dump-disks.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/com32/hdt/hdt-dump-disks.c b/com32/hdt/hdt-dump-disks.c
index ef8cf22..bde04d2 100644
--- a/com32/hdt/hdt-dump-disks.c
+++ b/com32/hdt/hdt-dump-disks.c
@@ -137,7 +137,7 @@ void dump_disks(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **ite
 	if (found==false) {
 		CREATE_NEW_OBJECT;
 		add_b("disks->is_valid",false);
-		FLUSH_OBJECT;
 	}
+	FLUSH_OBJECT;
 	to_cpio("disks");
 }


More information about the Syslinux-commits mailing list