fileio: Fix PVS/V560: end was already checked

See condition at line 3309.
This commit is contained in:
ZyX
2018-04-15 20:27:41 +03:00
parent 11f6411771
commit 1fb4282f1c

View File

@@ -3332,9 +3332,9 @@ restore_backup:
*s++ = NL; *s++ = NL;
} }
} }
if (++len == bufsize && end) { if (++len == bufsize) {
if (buf_write_bytes(&write_info) == FAIL) { if (buf_write_bytes(&write_info) == FAIL) {
end = 0; /* write error: break loop */ end = 0; // Write error: break loop.
break; break;
} }
nchars += bufsize; nchars += bufsize;
@@ -3343,7 +3343,7 @@ restore_backup:
os_breakcheck(); os_breakcheck();
if (got_int) { if (got_int) {
end = 0; /* Interrupted, break loop */ end = 0; // Interrupted, break loop.
break; break;
} }
} }