diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-28 22:30:32 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-28 22:30:32 +0100 |
commit | 5b18c248d3fe4961076dbc59c960ef60c80650f0 (patch) | |
tree | f1d3542b36984e67214946a9616cff0cc9b98b69 | |
parent | 842931cd7af37ea95e826b7a93a5d5587d18c9bb (diff) | |
download | vim-git-5b18c248d3fe4961076dbc59c960ef60c80650f0.tar.gz |
patch 8.2.0165: Coverity warning for using NULL pointerv8.2.0165
Problem: Coverity warning for using NULL pointer.
Solution: Add missing "else".
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9compile.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c index 8ba07a2ca..112b22cc7 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 165, +/**/ 164, /**/ 163, diff --git a/src/vim9compile.c b/src/vim9compile.c index 29595cca4..983108106 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4075,7 +4075,7 @@ compile_endtry(char_u *arg, cctx_T *cctx) emsg(_(e_no_endtry)); else if (scope->se_type == WHILE_SCOPE) emsg(_(e_endwhile)); - if (scope->se_type == FOR_SCOPE) + else if (scope->se_type == FOR_SCOPE) emsg(_(e_endfor)); else emsg(_(e_endif)); |