diff options
author | Robbbert <Robbbert@users.noreply.github.com> | 2021-02-13 23:37:14 +1100 |
---|---|---|
committer | Robbbert <Robbbert@users.noreply.github.com> | 2021-02-13 23:37:14 +1100 |
commit | e0915ba50629f31f670c9dd1e9c8349dd04692cd (patch) | |
tree | a8b356872e98e6372e4fa2a22d4d12889433291e | |
parent | a672c12c08c667bc8823064d707dcd7efba73047 (diff) |
pt68k4: Coverity 316195, 316197
-rw-r--r-- | src/mame/drivers/pt68k4.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/pt68k4.cpp b/src/mame/drivers/pt68k4.cpp index c29d2c626e1..f05e48dd4b4 100644 --- a/src/mame/drivers/pt68k4.cpp +++ b/src/mame/drivers/pt68k4.cpp @@ -239,11 +239,13 @@ void pt68k4_state::fdc_select_w(uint8_t data) switch (drive) { case 0: - floppy->ss_w((data & 0x40) ? 1 : 0); + if (floppy) + floppy->ss_w((data & 0x40) ? 1 : 0); break; case 1: - floppy2->ss_w((data & 0x40) ? 1 : 0); + if (floppy2) + floppy2->ss_w((data & 0x40) ? 1 : 0); break; default: |