commit | 9ad73239c26467832a5b553b2a4b99d7ffbaa25e | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jun 01 22:08:17 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jun 01 22:08:17 2016 +0200 |
tree | 78692621eed08764ddc93ca1b2b15a9ae8fadf31 | |
parent | 22081f4a3397704645841121d994058abd6cb481 [diff] [blame] |
patch 7.4.1865 Problem: Memory leaks in tet49. (Dominique Pelle) Solution: Use NULL instead of an empty string.
diff --git a/src/eval.c b/src/eval.c index adfe8f8..3d0abf3 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -5298,7 +5298,7 @@ * 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; }