0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 7.4.1865

Problem:    Memory leaks in tet49. (Dominique Pelle)
Solution:   Use NULL instead of an empty string.
This commit is contained in:
Bram Moolenaar
2016-06-01 22:08:17 +02:00
parent 22081f4a33
commit 9ad73239c2
2 changed files with 3 additions and 1 deletions

View File

@@ -5298,7 +5298,7 @@ eval7(
* what follows. So set it here. */ * what follows. So set it here. */
if (rettv->v_type == VAR_UNKNOWN && !evaluate && **arg == '(') if (rettv->v_type == VAR_UNKNOWN && !evaluate && **arg == '(')
{ {
rettv->vval.v_string = vim_strsave((char_u *)""); rettv->vval.v_string = NULL;
rettv->v_type = VAR_FUNC; rettv->v_type = VAR_FUNC;
} }

View File

@@ -753,6 +753,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 */
/**/
1865,
/**/ /**/
1864, 1864,
/**/ /**/