vim-patch:8.2.0042: clearing funccal values twice

Problem:    Clearing funccal values twice.
Solution:   Remove clearing individual fields.
eac7ce01e9
This commit is contained in:
Jan Edmund Lazo 2020-09-26 23:16:53 -04:00
parent 578b0b0b52
commit 594a69579f
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -821,17 +821,12 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars,
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_init(&fc->fc_funcs, sizeof(ufunc_T *), 1);
func_ptr_ref(fp);