From 5b18c248d3fe4961076dbc59c960ef60c80650f0 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 28 Jan 2020 22:30:32 +0100 Subject: patch 8.2.0165: Coverity warning for using NULL pointer Problem: Coverity warning for using NULL pointer. Solution: Add missing "else". --- src/version.c | 2 ++ src/vim9compile.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index 8ba07a2ca..112b22cc7 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 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)); -- cgit v1.2.1