summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-08-08 02:22:15 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-08-08 02:22:15 +0000
commit0bdd8082564dddd3b7cfdcfa6b43a5c7adc7fb8b (patch)
tree7d24ec237658fcbd133da32370b8cbce754eb2a2
parent896b392b2e50cf0bb89034eb6633f3f1c7362fc4 (diff)
fixed usage of uninitialized members in rtc9701_device (nw)
-rw-r--r--src/emu/machine/rtc9701.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/machine/rtc9701.c b/src/emu/machine/rtc9701.c
index 70dd7ad127f..06b3f86074e 100644
--- a/src/emu/machine/rtc9701.c
+++ b/src/emu/machine/rtc9701.c
@@ -105,6 +105,10 @@ void rtc9701_device::device_start()
m_rtc.hour = ((systime.local_time.hour / 10)<<4) | ((systime.local_time.hour % 10) & 0xf);
m_rtc.min = ((systime.local_time.minute / 10)<<4) | ((systime.local_time.minute % 10) & 0xf);
m_rtc.sec = ((systime.local_time.second / 10)<<4) | ((systime.local_time.second % 10) & 0xf);
+
+ rtc_state = RTC9701_CMD_WAIT;
+ cmd_stream_pos = 0;
+ current_cmd = 0;
}