diff options
author | 2010-07-07 03:18:56 +0000 | |
---|---|---|
committer | 2010-07-07 03:18:56 +0000 | |
commit | 4b978bec117896098cdff3540650c4fa8026cd83 (patch) | |
tree | dc6821bfbc639883376c73895f94fbaeb4a3c0a2 /src/emu/ui.c | |
parent | 47ba04990c6b390ba9a47745d7162a2b56395d40 (diff) |
This pattern is everywhere (no whatsnew)
Diffstat (limited to 'src/emu/ui.c')
-rw-r--r-- | src/emu/ui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/ui.c b/src/emu/ui.c index 01f5936d07f..16074fa44e1 100644 --- a/src/emu/ui.c +++ b/src/emu/ui.c @@ -1004,7 +1004,7 @@ astring &game_info_astring(running_machine *machine, astring &string) string.printf("%s\n%s %s\n\nCPU:\n", machine->gamedrv->description, machine->gamedrv->year, machine->gamedrv->manufacturer); /* loop over all CPUs */ - device_execute_interface *exec; + device_execute_interface *exec = NULL; for (bool gotone = machine->m_devicelist.first(exec); gotone; gotone = exec->next(exec)) { /* get cpu specific clock that takes internal multiplier/dividers into account */ @@ -1012,7 +1012,7 @@ astring &game_info_astring(running_machine *machine, astring &string) /* count how many identical CPUs we have */ int count = 1; - device_execute_interface *scan; + device_execute_interface *scan = NULL; for (bool gotone = exec->next(scan); gotone; gotone = scan->next(scan)) { if (exec->device().type() != scan->device().type() || exec->device().clock() != scan->device().clock()) @@ -1044,7 +1044,7 @@ astring &game_info_astring(running_machine *machine, astring &string) /* count how many identical sound chips we have */ int count = 1; - device_sound_interface *scan; + device_sound_interface *scan = NULL; for (bool gotanother = sound->next(scan); gotanother; gotanother = scan->next(scan)) { if (sound->device().type() != scan->device().type() || sound->device().clock() != scan->device().clock()) |