summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/md_slot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/md_slot.c')
-rw-r--r--src/mess/machine/md_slot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mess/machine/md_slot.c b/src/mess/machine/md_slot.c
index 113d8bb4ae1..0c99b92e727 100644
--- a/src/mess/machine/md_slot.c
+++ b/src/mess/machine/md_slot.c
@@ -901,11 +901,10 @@ int base_md_cart_slot_device::get_cart_type(UINT8 *ROM, UINT32 len)
const char * base_md_cart_slot_device::get_default_card_software(const machine_config &config, emu_options &options)
{
- const char *slot_string = "rom";
-
if (open_image_file(options))
{
- UINT32 len = core_fsize(m_file), offset = 0;;
+ const char *slot_string = "rom";
+ UINT32 len = core_fsize(m_file), offset = 0;
UINT8 *ROM = global_alloc_array(UINT8, len);
int type;