]> granicus.if.org Git - vim/commitdiff
patch 8.2.0165: Coverity warning for using NULL pointer v8.2.0165
authorBram Moolenaar <Bram@vim.org>
Tue, 28 Jan 2020 21:30:32 +0000 (22:30 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 28 Jan 2020 21:30:32 +0000 (22:30 +0100)
Problem:    Coverity warning for using NULL pointer.
Solution:   Add missing "else".

src/version.c
src/vim9compile.c

index 8ba07a2ca3b37a591146657af7408df84915db6f..112b22cc781a026040c494b53e8dd6aace161222 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    165,
 /**/
     164,
 /**/
index 29595cca4ebc1b4e1ad984df886ec12af135e611..983108106a9027faa9ca16b8638e3f9230bd51dd 100644 (file)
@@ -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));