1
0
forked from aniani/vim

patch 8.2.0572: using two lines for free and reset

Problem:    Using two lines for free and reset.
Solution:   Use VIM_CLEAR() instead. (Yegappan Lakshmanan)
This commit is contained in:
Bram Moolenaar
2020-04-13 18:13:33 +02:00
parent 0015795baa
commit df1956075d
2 changed files with 3 additions and 4 deletions

View File

@@ -4356,10 +4356,7 @@ build_argv_from_list(list_T *l, char ***argv, int *argc)
int i;
for (i = 0; i < *argc; ++i)
{
vim_free((*argv)[i]);
(*argv)[i] = NULL;
}
VIM_CLEAR((*argv)[i]);
return FAIL;
}
(*argv)[*argc] = (char *)vim_strsave(s);

View File

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