]> granicus.if.org Git - vim/commitdiff
patch 8.2.0042: clearing funccal values twice v8.2.0042
authorBram Moolenaar <Bram@vim.org>
Wed, 25 Dec 2019 14:04:03 +0000 (15:04 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 Dec 2019 14:04:03 +0000 (15:04 +0100)
Problem:    Clearing funccal values twice.
Solution:   Remove clearing individual fields.

src/userfunc.c
src/version.c

index 948c5f1c61f309dbbaf5930eb14e7b66699bb953..b3a7558a913d277ac3df07f539ac578a14d66f65 100644 (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);
 
index 8ea652d5d29ba764994b4a2b8798ece63270a505..d4760ebf3ebb278264cdea2f53e980bae16e9e23 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    42,
 /**/
     41,
 /**/