SCP: Allow detaching of buffered devices without a buffer (COVERITY)

This commit is contained in:
Mark Pizzolato 2017-03-11 11:10:56 -08:00
parent c169b8dd79
commit 7eece3deb1

2
scp.c
View file

@ -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) {