summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-23 13:32:30 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-23 13:32:30 +0100
commit844fb64a605d60131827503a001b2d1aa232b078 (patch)
tree60451abfc3dac8be70ce364c4f8dd1d1164d298a /src/globals.h
parentee56f3f119c4378a5b62b4d504cff3373b363308 (diff)
patch 8.2.3560: using freed memory with lambdav8.2.3560
Problem: Using freed memory with lambda. Solution: Do not free lines early, keep them until the expression is finished.
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/globals.h b/src/globals.h
index 4a6e027486..948c35f84f 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1867,8 +1867,8 @@ EXTERN listitem_T range_list_item;
// Passed to an eval() function to enable evaluation.
EXTERN evalarg_T EVALARG_EVALUATE
# ifdef DO_INIT
- = {EVAL_EVALUATE, 0, NULL, NULL, NULL, NULL, {0, 0, 0, 0, NULL},
- {0, 0, 0, 0, NULL}, NULL, NULL, NULL}
+ = {EVAL_EVALUATE, 0, NULL, NULL, NULL, NULL, GA_EMPTY, GA_EMPTY, NULL,
+ {0, 0, (int)sizeof(char_u *), 20, NULL}, 0, NULL}
# endif
;
#endif