mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 17:58:18 +00:00
PVS/V781: "maxlen" variable checked after use
False positive.
This commit is contained in:
@@ -1880,7 +1880,7 @@ static void msg_puts_display(const char_u *str, int maxlen, int attr,
|
|||||||
}
|
}
|
||||||
// Concat pieces with the same highlight
|
// Concat pieces with the same highlight
|
||||||
ga_concat_len(&msg_ext_last_chunk, (char *)str,
|
ga_concat_len(&msg_ext_last_chunk, (char *)str,
|
||||||
strnlen((char *)str, maxlen));
|
strnlen((char *)str, maxlen)); // -V781
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user