diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-14 14:24:08 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-14 16:10:09 +0800 |
commit | 9c65a18753404ec0419bac45969be6c9e5a2fbb6 (patch) | |
tree | 50722f57b393af4d84644da170afac645874cfb9 | |
parent | 04b58cec86e24aaa395b27b2a9587b5cb329ea04 (diff) | |
download | rneovim-9c65a18753404ec0419bac45969be6c9e5a2fbb6.tar.gz rneovim-9c65a18753404ec0419bac45969be6c9e5a2fbb6.tar.bz2 rneovim-9c65a18753404ec0419bac45969be6c9e5a2fbb6.zip |
vim-patch:8.2.1103: Coverity reports an unnecessary NULL check
Problem: Coverity reports an unnecessary NULL check.
Solution: Remove the check for NULL.
https://github.com/vim/vim/commit/e707c882b23a53d2c1f0d1f7fc3a7be247aca614
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index ba5c615ffd..ed1a49f08d 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -7486,7 +7486,7 @@ void ex_echo(exarg_T *eap) const int called_emsg_before = called_emsg; evalarg_T evalarg; - fill_evalarg_from_eap(&evalarg, eap, eap != NULL && eap->skip); + fill_evalarg_from_eap(&evalarg, eap, eap->skip); if (eap->skip) { emsg_skip++; |