mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 17:58:18 +00:00
fileio: Silence PVS/V614: buffer is initialized if conv_restlen > 0
This commit is contained in:
@@ -1016,8 +1016,8 @@ retry:
|
|||||||
size = size / ICONV_MULT; /* worst case */
|
size = size / ICONV_MULT; /* worst case */
|
||||||
|
|
||||||
if (conv_restlen > 0) {
|
if (conv_restlen > 0) {
|
||||||
/* Insert unconverted bytes from previous line. */
|
// Insert unconverted bytes from previous line.
|
||||||
memmove(ptr, conv_rest, conv_restlen);
|
memmove(ptr, conv_rest, conv_restlen); // -V614
|
||||||
ptr += conv_restlen;
|
ptr += conv_restlen;
|
||||||
size -= conv_restlen;
|
size -= conv_restlen;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user