From c49617fec23bf8380e92095b6dd962264d61dccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Sun, 26 Oct 2014 08:18:33 +0100 Subject: [PATCH] fixed usage of uninitialized members in c64h156_device (nw) was actually used inside base_c1541_device::via1_pb_r() with e.g. edu -cart batman --- src/emu/machine/64h156.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/machine/64h156.c b/src/emu/machine/64h156.c index a6031558c09..7b87e4d2158 100644 --- a/src/emu/machine/64h156.c +++ b/src/emu/machine/64h156.c @@ -75,10 +75,10 @@ c64h156_device::c64h156_device(const machine_config &mconfig, const char *tag, d m_atna(0), m_period(attotime::from_hz(clock)) { + memset(&cur_live, 0x00, sizeof(cur_live)); cur_live.tm = attotime::never; cur_live.state = IDLE; cur_live.next_state = -1; - cur_live.write_position = 0; cur_live.write_start_time = attotime::never; }