mirror of
https://github.com/neovim/neovim.git
synced 2024-12-27 14:21:31 -07:00
fileio: Silence PVS/V614: buffer is initialized if conv_restlen > 0
This commit is contained in:
parent
cd27198526
commit
3189841984
@ -1016,8 +1016,8 @@ retry:
|
||||
size = size / ICONV_MULT; /* worst case */
|
||||
|
||||
if (conv_restlen > 0) {
|
||||
/* Insert unconverted bytes from previous line. */
|
||||
memmove(ptr, conv_rest, conv_restlen);
|
||||
// Insert unconverted bytes from previous line.
|
||||
memmove(ptr, conv_rest, conv_restlen); // -V614
|
||||
ptr += conv_restlen;
|
||||
size -= conv_restlen;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user