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:
@@ -742,6 +742,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
169,
|
||||
/**/
|
||||
168,
|
||||
/**/
|
||||
|
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user