mirror of
https://github.com/simh/simh.git
synced 2026-02-27 01:00:07 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user