Skip to content

Commit

Permalink
patch 8.2.0042: clearing funccal values twice
Browse files Browse the repository at this point in the history
Problem:    Clearing funccal values twice.
Solution:   Remove clearing individual fields.
  • Loading branch information
brammool committed Dec 25, 2019
1 parent 6c52f82 commit eac7ce0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/userfunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
42,
/**/
41,
/**/
Expand Down

0 comments on commit eac7ce0

Please sign in to comment.