mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 15:27:46 +00:00
TMXR: Allow Line based logging to be both disabled and enabled before attach
Previously attempts to disable logging for an unattached mux (or line) could crash the simulator.
This commit is contained in:
parent
ae6f3b97e4
commit
451b53daeb
@ -4456,7 +4456,8 @@ if (lp->txlog) { /* logging? */
|
||||
lp->txlog = NULL;
|
||||
lp->txlogname = NULL;
|
||||
}
|
||||
lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp);
|
||||
if (mp->uptr)
|
||||
lp->mp->uptr->filename = tmxr_mux_attach_string (lp->mp->uptr->filename, lp->mp);
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user