summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2021-02-13 21:59:12 +1100
committer Robbbert <Robbbert@users.noreply.github.com>2021-02-13 21:59:12 +1100
commitfbfbed1a223c361ad957d77fccf0833b505541d7 (patch)
treed73c9be00628260d03f85710de4905103d851eb7
parent052353fd226c85aa4ca1b3dd48e0581fe9003592 (diff)
specimx: Coverity 315439
-rw-r--r--src/mame/machine/special.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mame/machine/special.cpp b/src/mame/machine/special.cpp
index df5d90e3c9a..c6fd025320e 100644
--- a/src/mame/machine/special.cpp
+++ b/src/mame/machine/special.cpp
@@ -204,7 +204,9 @@ void special_state::specimx_disk_ctrl_w(offs_t offset, uint8_t data)
floppy = con->get_device();
m_fdc->set_floppy(floppy);
- floppy->mon_w(0);
+
+ if (floppy)
+ floppy->mon_w(0);
switch(offset)
{