fileio: Silence PVS/V614: buffer is initialized if conv_restlen > 0

This commit is contained in:
ZyX 2018-04-15 20:32:21 +03:00
parent cd27198526
commit 3189841984

View File

@ -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;
}