changeset 19213:b18437efabac v8.2.0165

patch 8.2.0165: Coverity warning for using NULL pointer Commit: https://github.com/vim/vim/commit/5b18c248d3fe4961076dbc59c960ef60c80650f0 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 28 22:30:32 2020 +0100 patch 8.2.0165: Coverity warning for using NULL pointer Problem: Coverity warning for using NULL pointer. Solution: Add missing "else".
author Bram Moolenaar <Bram@vim.org>
date Tue, 28 Jan 2020 22:45:03 +0100
parents 5421c1041d31
children 5d7bcea37d94
files src/version.c src/vim9compile.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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));