From: Erwan Velu Date: Wed, 21 Sep 2011 19:44:47 +0000 (+0200) Subject: hdt: Dumping disk failed when disk are present X-Git-Tag: syslinux-4.06-pre2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51431d2c9992a99f58378056523256757edb0fb3;p=profile%2Fivi%2Fsyslinux.git 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. --- 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"); }