changeset 18962:af44ca0ddf49 v8.2.0042

patch 8.2.0042: clearing funccal values twice Commit: https://github.com/vim/vim/commit/eac7ce01e92f3dee6bbccaf7e88680fe2ce286eb Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 25 15:04:03 2019 +0100 patch 8.2.0042: clearing funccal values twice Problem: Clearing funccal values twice. Solution: Remove clearing individual fields.
author Bram Moolenaar <Bram@vim.org>
date Wed, 25 Dec 2019 15:15:03 +0100
parents b7bfc651f3e4
children 233176dfe0d0
files src/userfunc.c src/version.c
diffstat 2 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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);
 
--- 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,