summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-25 15:04:03 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-25 15:04:03 +0100
commiteac7ce01e92f3dee6bbccaf7e88680fe2ce286eb (patch)
tree5493a8fc78976cba8b132982160a00145263ec7a
parent6c52f8237199ea09abbecdc5b89847c5889c3de1 (diff)
downloadvim-git-8.2.0042.tar.gz
patch 8.2.0042: clearing funccal values twicev8.2.0042
Problem: Clearing funccal values twice. Solution: Remove clearing individual fields.
-rw-r--r--src/userfunc.c5
-rw-r--r--src/version.c2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index 948c5f1c6..b3a7558a9 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -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);
diff --git a/src/version.c b/src/version.c
index 8ea652d5d..d4760ebf3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 42,
+/**/
41,
/**/
40,