diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-06 10:02:08 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-05-06 10:02:08 +0200 |
commit | e7a8908b11db404ad7e1f3ee0209ad46c6b28594 (patch) | |
tree | b39d72f883897fa64dd707e8bc969388b8a3e469 /src | |
parent | fe299a82a683c43d2734268a22b3e97acf8be0c7 (diff) | |
download | rneovim-e7a8908b11db404ad7e1f3ee0209ad46c6b28594.tar.gz rneovim-e7a8908b11db404ad7e1f3ee0209ad46c6b28594.tar.bz2 rneovim-e7a8908b11db404ad7e1f3ee0209ad46c6b28594.zip |
PVS/V781: "maxlen" variable checked after use
False positive.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 28855402f4..4c5f357451 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -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; } |