PVS/V781: "maxlen" variable checked after use

False positive.
This commit is contained in:
Justin M. Keyes
2019-05-06 10:02:08 +02:00
parent fe299a82a6
commit e7a8908b11

View File

@@ -1880,7 +1880,7 @@ static void msg_puts_display(const char_u *str, int maxlen, int attr,
}
// Concat pieces with the same highlight
ga_concat_len(&msg_ext_last_chunk, (char *)str,
strnlen((char *)str, maxlen));
strnlen((char *)str, maxlen)); // -V781
return;
}