mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
SCP: Allow detaching of buffered devices without a buffer (COVERITY)
This commit is contained in:
parent
c169b8dd79
commit
7eece3deb1
2
scp.c
2
scp.c
@ -5812,7 +5812,7 @@ if (!(uptr->flags & UNIT_ATT)) { /* not attached? */
|
||||
}
|
||||
if ((dptr = find_dev_from_unit (uptr)) == NULL)
|
||||
return SCPE_OK;
|
||||
if (uptr->flags & UNIT_BUF) {
|
||||
if ((uptr->flags & UNIT_BUF) && (uptr->filebuf)) {
|
||||
uint32 cap = (uptr->hwmark + dptr->aincr - 1) / dptr->aincr;
|
||||
if (uptr->hwmark && ((uptr->flags & UNIT_RO) == 0)) {
|
||||
if (!sim_quiet) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user