commit | 5b18c248d3fe4961076dbc59c960ef60c80650f0 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jan 28 22:30:32 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jan 28 22:30:32 2020 +0100 |
tree | f1d3542b36984e67214946a9616cff0cc9b98b69 | |
parent | 842931cd7af37ea95e826b7a93a5d5587d18c9bb [diff] [blame] |
patch 8.2.0165: Coverity warning for using NULL pointer Problem: Coverity warning for using NULL pointer. Solution: Add missing "else".
diff --git a/src/vim9compile.c b/src/vim9compile.c index 29595cc..9831081 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c
@@ -4075,7 +4075,7 @@ 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));