aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-14 14:24:08 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-14 16:10:09 +0800
commit9c65a18753404ec0419bac45969be6c9e5a2fbb6 (patch)
tree50722f57b393af4d84644da170afac645874cfb9
parent04b58cec86e24aaa395b27b2a9587b5cb329ea04 (diff)
downloadrneovim-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.c2
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++;