0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 8.2.0042: clearing funccal values twice

Problem:    Clearing funccal values twice.
Solution:   Remove clearing individual fields.
This commit is contained in:
Bram Moolenaar 2019-12-25 15:04:03 +01:00
parent 6c52f82371
commit eac7ce01e9
2 changed files with 2 additions and 5 deletions

View File

@ -800,16 +800,11 @@ call_user_func(
current_funccal = fc;
fc->func = fp;
fc->rettv = rettv;
rettv->vval.v_number = 0;
fc->linenr = 0;
fc->returned = FALSE;
fc->level = ex_nesting_level;
// Check if this function has a breakpoint.
fc->breakpoint = dbg_find_breakpoint(FALSE, fp->uf_name, (linenr_T)0);
fc->dbg_tick = debug_tick;
// Set up fields for closure.
fc->fc_refcount = 0;
fc->fc_copyID = 0;
ga_init2(&fc->fc_funcs, sizeof(ufunc_T *), 1);
func_ptr_ref(fp);

View File

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