diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-29 14:44:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 14:44:18 +0800 |
commit | 02efdb4d587242122df99b347a25fd4c96b0ca97 (patch) | |
tree | 71d3712b243a728ba933dd845f4c0f690cd8be6d /src/nvim/quickfix.c | |
parent | 0b8bade493235cda9d8ab3ed138d6c94d7cef759 (diff) | |
download | rneovim-02efdb4d587242122df99b347a25fd4c96b0ca97.tar.gz rneovim-02efdb4d587242122df99b347a25fd4c96b0ca97.tar.bz2 rneovim-02efdb4d587242122df99b347a25fd4c96b0ca97.zip |
refactor: fix clang and PVS warnings (#19569)
The last commit didn't actually disable V1028 because of a typo.
Fix the typo so it is actually disabled.
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index d5797e87e5..bdfaa11935 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3153,11 +3153,7 @@ static void qf_list_entry(qfline_T *qfp, int qf_idx, bool cursel) if (len > IOSIZE) { tbuf = xmalloc(len); - if (tbuf != NULL) { - tbuflen = len; - } else { - tbuf = IObuff; - } + tbuflen = len; } // Remove newlines and leading whitespace from the text. For an |