aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2018-04-15 20:32:21 +0300
committerZyX <kp-pav@yandex.ru>2018-04-15 20:32:21 +0300
commit31898419849f9389cb47d7a26dda600fc8951eb9 (patch)
tree198c06d3a96b3a5ed577343292f48d9ae35bae43
parentcd271985267e06eab8d69abe6dd4ec25d99d0392 (diff)
downloadrneovim-31898419849f9389cb47d7a26dda600fc8951eb9.tar.gz
rneovim-31898419849f9389cb47d7a26dda600fc8951eb9.tar.bz2
rneovim-31898419849f9389cb47d7a26dda600fc8951eb9.zip
fileio: Silence PVS/V614: buffer is initialized if conv_restlen > 0
-rw-r--r--src/nvim/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index c67beeb989..451f924c28 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -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;
}