mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 17:58:18 +00:00
fileio: Fix PVS/V560: end was already checked
See condition at line 3309.
This commit is contained in:
@@ -3332,9 +3332,9 @@ restore_backup:
|
||||
*s++ = NL;
|
||||
}
|
||||
}
|
||||
if (++len == bufsize && end) {
|
||||
if (++len == bufsize) {
|
||||
if (buf_write_bytes(&write_info) == FAIL) {
|
||||
end = 0; /* write error: break loop */
|
||||
end = 0; // Write error: break loop.
|
||||
break;
|
||||
}
|
||||
nchars += bufsize;
|
||||
@@ -3343,7 +3343,7 @@ restore_backup:
|
||||
|
||||
os_breakcheck();
|
||||
if (got_int) {
|
||||
end = 0; /* Interrupted, break loop */
|
||||
end = 0; // Interrupted, break loop.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user