summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/8042kbdc.c
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-04-27 14:14:26 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-04-27 14:14:26 +0000
commit7d4caa9488724363ee9a87907866d25f9f012e91 (patch)
tree97e4dce62f61d26bfd1c318dbfd3ddb62ee4570e /src/emu/machine/8042kbdc.c
parent8825f10c435b3e985af2d8640b6720c46c43c178 (diff)
fixed usage of uninitialized members in kbdc8042_device (nw)
Diffstat (limited to 'src/emu/machine/8042kbdc.c')
-rw-r--r--src/emu/machine/8042kbdc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/machine/8042kbdc.c b/src/emu/machine/8042kbdc.c
index c497d818f33..eb159c8d2bb 100644
--- a/src/emu/machine/8042kbdc.c
+++ b/src/emu/machine/8042kbdc.c
@@ -229,6 +229,9 @@ void kbdc8042_device::device_start()
m_operation_write_state = 0; /* first write to 0x60 might occur before anything can set this */
memset(&m_keyboard, 0x00, sizeof(m_keyboard));
memset(&m_mouse, 0x00, sizeof(m_mouse));
+ m_sending = 0;
+ m_last_write_to_control = 0;
+ m_status_read_mode = 0;
}
/*-------------------------------------------------