mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
SCP: Allow detaching of buffered devices without a buffer (COVERITY)
This commit is contained in:
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) {
|
||||
|
||||
Reference in New Issue
Block a user