mirror of
https://github.com/simh/simh.git
synced 2026-01-26 20:12:23 +00:00
I1401, I1620, I7094: Address Coverity issues in card reader devices
This commit is contained in:
@@ -423,9 +423,9 @@ if (ferror (cdr_unit.fileref)) { /* error? */
|
||||
}
|
||||
cdr_unit.pos = ftell (cdr_unit.fileref); /* update position */
|
||||
if (ssa) { /* if last cd on */
|
||||
getc (cdr_unit.fileref); /* see if more */
|
||||
if (feof (cdr_unit.fileref)) /* eof? set flag */
|
||||
ind[IN_LST] = 1;
|
||||
if (getc (cdr_unit.fileref) == EOF) /* eof? */
|
||||
ind[IN_LST] = 1; /* set flag */
|
||||
clearerr (cdr_unit.fileref);
|
||||
fseek (cdr_unit.fileref, cdr_unit.pos, SEEK_SET);
|
||||
}
|
||||
return SCPE_OK;
|
||||
|
||||
Reference in New Issue
Block a user