summaryrefslogtreecommitdiff
path: root/hw/sun4m.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-02-29 19:26:20 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-02-29 19:26:20 +0000
commit309e60bd07c8b5e89b285ed7ee9ce3240d7f9bfc (patch)
tree033afec639ead8c5111435e290795e2ad3aa34cc /hw/sun4m.c
parent9fea808abf6f5295b39f43f9b394ea16d65b6d46 (diff)
downloadqemu-309e60bd07c8b5e89b285ed7ee9ce3240d7f9bfc.zip
Fix sun4m machine if MAX_FD != 2 (Herv�oussineau)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4001 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sun4m.c')
-rw-r--r--hw/sun4m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c
index 55abfe8b7d..e4717c485c 100644
--- a/hw/sun4m.c
+++ b/hw/sun4m.c
@@ -492,7 +492,7 @@ static void sun4m_hw_init(const struct hwdef *hwdef, int RAM_size,
if (hwdef->fd_base != (target_phys_addr_t)-1) {
/* there is zero or one floppy drive */
- fd[1] = fd[0] = NULL;
+ memset(fd, 0, sizeof(fd));
index = drive_get_index(IF_FLOPPY, 0, 0);
if (index != -1)
fd[0] = drives_table[index].bdrv;