From: Bram Moolenaar Date: Tue, 28 Jan 2020 21:30:32 +0000 (+0100) Subject: patch 8.2.0165: Coverity warning for using NULL pointer X-Git-Tag: v8.2.0165 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b18c248d3fe4961076dbc59c960ef60c80650f0;p=thirdparty%2Fvim.git 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/version.c b/src/version.c index 8ba07a2ca3..112b22cc78 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 165, /**/ 164, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index 29595cca4e..983108106a 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));