0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0169: Coverity warning for dead code

Problem:    Coverity warning for dead code.
Solution:   Check if inside try-finally.
This commit is contained in:
Bram Moolenaar
2020-01-28 22:59:45 +01:00
parent 97a2af39cd
commit 8cbd6dfc0c
2 changed files with 7 additions and 0 deletions

View File

@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
169,
/**/
168,
/**/

View File

@@ -851,6 +851,11 @@ call_def_function(
// return from a :def function call
case ISN_RETURN:
{
garray_T *trystack = &ectx.ec_trystack;
if (trystack->ga_len > 0)
trycmd = ((trycmd_T *)trystack->ga_data)
+ trystack->ga_len - 1;
if (trycmd != NULL && trycmd->tcd_frame == ectx.ec_frame
&& trycmd->tcd_finally_idx != 0)
{