forked from aniani/vim
updated for version 7.3.108
Problem: Useless check for NULL when calling vim_free(). Solution: Remove the check. (Dominique Pelle)
This commit is contained in:
@@ -5106,8 +5106,6 @@ eval7(arg, rettv, evaluate, want_string)
|
|||||||
else
|
else
|
||||||
ret = OK;
|
ret = OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (alias != NULL)
|
|
||||||
vim_free(alias);
|
vim_free(alias);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -19807,7 +19805,7 @@ set_var(name, tv, copy)
|
|||||||
EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name);
|
EMSG2(_("E704: Funcref variable name must start with a capital: %s"), name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Don't allow hiding a function. When "v" is not NULL we migth be
|
/* Don't allow hiding a function. When "v" is not NULL we might be
|
||||||
* assigning another function to the same var, the type is checked
|
* assigning another function to the same var, the type is checked
|
||||||
* below. */
|
* below. */
|
||||||
if (v == NULL && function_exists(name))
|
if (v == NULL && function_exists(name))
|
||||||
|
@@ -5412,7 +5412,7 @@ read_viminfo_sub_string(virp, force)
|
|||||||
vir_T *virp;
|
vir_T *virp;
|
||||||
int force;
|
int force;
|
||||||
{
|
{
|
||||||
if (old_sub != NULL && force)
|
if (force)
|
||||||
vim_free(old_sub);
|
vim_free(old_sub);
|
||||||
if (force || old_sub == NULL)
|
if (force || old_sub == NULL)
|
||||||
old_sub = viminfo_readstring(virp, 1, TRUE);
|
old_sub = viminfo_readstring(virp, 1, TRUE);
|
||||||
|
@@ -1886,7 +1886,6 @@ SaveConsoleBuffer(
|
|||||||
cb->BufferSize.X = cb->Info.dwSize.X;
|
cb->BufferSize.X = cb->Info.dwSize.X;
|
||||||
cb->BufferSize.Y = cb->Info.dwSize.Y;
|
cb->BufferSize.Y = cb->Info.dwSize.Y;
|
||||||
NumCells = cb->BufferSize.X * cb->BufferSize.Y;
|
NumCells = cb->BufferSize.X * cb->BufferSize.Y;
|
||||||
if (cb->Buffer != NULL)
|
|
||||||
vim_free(cb->Buffer);
|
vim_free(cb->Buffer);
|
||||||
cb->Buffer = (PCHAR_INFO)alloc(NumCells * sizeof(CHAR_INFO));
|
cb->Buffer = (PCHAR_INFO)alloc(NumCells * sizeof(CHAR_INFO));
|
||||||
if (cb->Buffer == NULL)
|
if (cb->Buffer == NULL)
|
||||||
|
@@ -714,6 +714,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 */
|
||||||
|
/**/
|
||||||
|
108,
|
||||||
/**/
|
/**/
|
||||||
107,
|
107,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user