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:
@@ -4356,10 +4356,7 @@ build_argv_from_list(list_T *l, char ***argv, int *argc)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < *argc; ++i)
|
for (i = 0; i < *argc; ++i)
|
||||||
{
|
VIM_CLEAR((*argv)[i]);
|
||||||
vim_free((*argv)[i]);
|
|
||||||
(*argv)[i] = NULL;
|
|
||||||
}
|
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
(*argv)[*argc] = (char *)vim_strsave(s);
|
(*argv)[*argc] = (char *)vim_strsave(s);
|
||||||
|
@@ -738,6 +738,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 */
|
||||||
|
/**/
|
||||||
|
572,
|
||||||
/**/
|
/**/
|
||||||
571,
|
571,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user