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:
@@ -742,6 +742,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
165,
|
||||||
/**/
|
/**/
|
||||||
164,
|
164,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -4075,7 +4075,7 @@ compile_endtry(char_u *arg, cctx_T *cctx)
|
|||||||
emsg(_(e_no_endtry));
|
emsg(_(e_no_endtry));
|
||||||
else if (scope->se_type == WHILE_SCOPE)
|
else if (scope->se_type == WHILE_SCOPE)
|
||||||
emsg(_(e_endwhile));
|
emsg(_(e_endwhile));
|
||||||
if (scope->se_type == FOR_SCOPE)
|
else if (scope->se_type == FOR_SCOPE)
|
||||||
emsg(_(e_endfor));
|
emsg(_(e_endfor));
|
||||||
else
|
else
|
||||||
emsg(_(e_endif));
|
emsg(_(e_endif));
|
||||||
|
Reference in New Issue
Block a user