summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-06-01 22:08:17 +0200
committerBram Moolenaar <Bram@vim.org>2016-06-01 22:08:17 +0200
commit9ad73239c26467832a5b553b2a4b99d7ffbaa25e (patch)
tree78692621eed08764ddc93ca1b2b15a9ae8fadf31 /src/eval.c
parent22081f4a3397704645841121d994058abd6cb481 (diff)
downloadvim-git-9ad73239c26467832a5b553b2a4b99d7ffbaa25e.tar.gz
patch 7.4.1865v7.4.1865
Problem: Memory leaks in tet49. (Dominique Pelle) Solution: Use NULL instead of an empty string.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index adfe8f899..3d0abf369 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -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;
}