diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-06-01 20:32:33 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-06-04 11:43:39 +0200 |
commit | 03432407256b8e39d76c9e6cd39dc553e7b646d8 (patch) | |
tree | ab9c5c0122bcf4a8bdb1bd5ea41923b62de4d5bf /hw/ide/qdev.c | |
parent | 6ced55a57d7f6e647d683b5c41df0c176594f824 (diff) |
ide: Fix info qtree for ide-drive.ver
Show the actual default value instead of <null> when the property has
not been set.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/qdev.c')
-rw-r--r-- | hw/ide/qdev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c index 5e549d9d2f..6231d7716c 100644 --- a/hw/ide/qdev.c +++ b/hw/ide/qdev.c @@ -110,6 +110,9 @@ static int ide_drive_initfn(IDEDevice *dev) ide_init_drive(s, dev->conf.dinfo, dev->version, serial); + if (!dev->version) { + dev->version = qemu_strdup(s->version); + } if (!dev->serial) { dev->serial = qemu_strdup(s->drive_serial_str); } |