AltairZ80: 2SIO: Fix potential NULL pointer dereference.
This commit is contained in:
parent
023cd3b387
commit
09899c18fa
1 changed files with 4 additions and 0 deletions
|
@ -546,6 +546,10 @@ static t_stat m2sio_detach(UNIT *uptr)
|
|||
{
|
||||
M2SIO_CTX *xptr;
|
||||
|
||||
if (uptr->dptr == NULL) {
|
||||
return SCPE_IERR;
|
||||
}
|
||||
|
||||
sim_debug(VERBOSE_MSG, uptr->dptr, "detach.\n");
|
||||
|
||||
if (uptr->flags & UNIT_ATT) {
|
||||
|
|
Loading…
Add table
Reference in a new issue