0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.4042: Vim9: build error

Problem:    Vim9: build error.
Solution:   Use grow array instead of character pointer.
This commit is contained in:
Bram Moolenaar
2022-01-08 16:02:59 +00:00
parent aa9b3cacd5
commit 1433672568
2 changed files with 7 additions and 4 deletions

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
4042,
/**/ /**/
4041, 4041,
/**/ /**/

View File

@@ -3345,12 +3345,13 @@ exec_instructions(ectx_T *ectx)
else else
{ {
exarg_T ea; exarg_T ea;
char_u *line_to_free = NULL; garray_T lines_to_free;
CLEAR_FIELD(ea); CLEAR_FIELD(ea);
ea.cmd = ea.arg = iptr->isn_arg.string; ea.cmd = ea.arg = iptr->isn_arg.string;
define_function(&ea, NULL, &line_to_free); ga_init2(&lines_to_free, sizeof(char_u *), 50);
vim_free(line_to_free); define_function(&ea, NULL, &lines_to_free);
ga_clear_strings(&lines_to_free);
} }
break; break;