diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-06-01 22:08:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-06-01 22:08:17 +0200 |
commit | 9ad73239c26467832a5b553b2a4b99d7ffbaa25e (patch) | |
tree | 78692621eed08764ddc93ca1b2b15a9ae8fadf31 /src/eval.c | |
parent | 22081f4a3397704645841121d994058abd6cb481 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index adfe8f899a..3d0abf3692 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; } |