Fixed MT05072 - fixed uninitialized members in wd33c93.c (fixes ip225015 crash) [Oliver Stöneberg]

This commit is contained in:
Oliver Stöneberg 2013-01-02 19:17:17 +00:00
parent 3ce3ef2357
commit 80f45cf65e

View File

@ -756,8 +756,17 @@ void wd33c93_device::device_config_complete()
void wd33c93_device::device_start()
{
memset(&regs, 0, sizeof(regs));
memset(regs, 0, sizeof(regs));
memset(devices, 0, sizeof(devices));
memset(fifo, 0, sizeof(fifo));
memset(temp_input, 0, sizeof(temp_input));
sasr = 0;
fifo_pos = 0;
temp_input_pos = 0;
busphase = 0;
identify = 0;
read_pending = 0;
// try to open the devices
for( device_t *device = owner()->first_subdevice(); device != NULL; device = device->next() )