From 9cd4f31d8f3d5cee3697b764d7b3eb4b343a9bf8 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Sat, 4 Jul 2020 22:34:57 +0200 Subject: devices/machine/8042kbdc, mame/machine/s32comm: initialize variables which caused problems in debug devnoclear builds --- src/devices/machine/8042kbdc.cpp | 1 + src/mame/machine/s32comm.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/devices/machine/8042kbdc.cpp b/src/devices/machine/8042kbdc.cpp index 18338dd14d9..b2ce8b6743e 100644 --- a/src/devices/machine/8042kbdc.cpp +++ b/src/devices/machine/8042kbdc.cpp @@ -72,6 +72,7 @@ void kbdc8042_device::device_start() m_last_write_to_control = 0; m_status_read_mode = 0; m_speaker = 0; + m_offset1 = 0; m_update_timer = timer_alloc(TIMER_UPDATE); m_update_timer->adjust(attotime::never); diff --git a/src/mame/machine/s32comm.cpp b/src/mame/machine/s32comm.cpp index 26797685c55..b53448b46d3 100644 --- a/src/mame/machine/s32comm.cpp +++ b/src/mame/machine/s32comm.cpp @@ -133,6 +133,8 @@ void s32comm_device::device_reset() m_zfg = 0; m_cn = 0; m_fg = 0; + + std::fill(std::begin(m_shared), std::end(m_shared), 0); } uint8_t s32comm_device::zfg_r(offs_t offset) -- cgit v1.2.3