0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -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. */
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;
}