1
0
forked from aniani/vim

patch 8.2.0165: Coverity warning for using NULL pointer

Problem:    Coverity warning for using NULL pointer.
Solution:   Add missing "else".
This commit is contained in:
Bram Moolenaar
2020-01-28 22:30:32 +01:00
parent 842931cd7a
commit 5b18c248d3
2 changed files with 3 additions and 1 deletions

View 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));