From 309e60bd07c8b5e89b285ed7ee9ce3240d7f9bfc Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Fri, 29 Feb 2008 19:26:20 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20sun4m=20machine=20if=20MAX=5FFD=20!=3D=20?= =?UTF-8?q?2=20(Herv=EF=BF=BDoussineau)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4001 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/sun4m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;