mirror of
https://github.com/open-simh/simh.git
synced 2026-05-03 22:58:53 +00:00
SCP/TMXR: Fix crashing bug when a multiplexer line has logging enabled before a mux attach,
This commit is contained in:
@@ -3437,7 +3437,8 @@ if (lp->txlog == NULL) { /* error? */
|
|||||||
free (lp->txlogname); /* free buffer */
|
free (lp->txlogname); /* free buffer */
|
||||||
return SCPE_OPENERR;
|
return SCPE_OPENERR;
|
||||||
}
|
}
|
||||||
lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp);
|
if (mp->uptr) /* attached?, then update attach string */
|
||||||
|
lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp);
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user