diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-28 22:59:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-28 22:59:45 +0100 |
commit | 8cbd6dfc0c9d84c5be8414dfdea3b28b72dfddb6 (patch) | |
tree | 57e005aa3f2a4769e452d1833fedad525b53efdb /src/vim9execute.c | |
parent | 97a2af39cd3249c6cbe5a5c59bc24167632d39ad (diff) | |
download | vim-git-8cbd6dfc0c9d84c5be8414dfdea3b28b72dfddb6.tar.gz |
patch 8.2.0169: Coverity warning for dead codev8.2.0169
Problem: Coverity warning for dead code.
Solution: Check if inside try-finally.
Diffstat (limited to 'src/vim9execute.c')
-rw-r--r-- | src/vim9execute.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vim9execute.c b/src/vim9execute.c index 480f1ec56..6e003d938 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -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) { |