Previous 15994 Revisions Next

r11403 Sunday 1st May, 2011 at 17:05:29 UTC by R. Belmont
mc146818: fix uninitialized variable (no whatsnew)
[src/emu/machine]mc146818.c

src/emu/machine/mc146818.c
r11402r11403
143143{
144144   m_last_refresh = machine().time();
145145   emu_timer *timer = timer_alloc();
146
147   memset(m_data, 0, sizeof(m_data));
148
146149   if (m_type == MC146818_UTC) {
147150      // hack: for apollo we increase the update frequency to stay in sync with real time
148151      timer->adjust(attotime::from_hz(2), 0, attotime::from_hz(2));
r11402r11403
363366
364367   machine().base_datetime(systime);
365368
366   current_time = m_type == MC146818_UTC ? systime.utc_time: systime.local_time;
369   current_time = (m_type == MC146818_UTC) ? systime.utc_time: systime.local_time;
367370
368371   // temporary hack to go back 20 year (e.g. from 2010 -> 1990)
369372   // current_time.year -= 20;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team