changeset 9163:731ee601de16 v7.4.1865

commit https://github.com/vim/vim/commit/9ad73239c26467832a5b553b2a4b99d7ffbaa25e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 1 22:08:17 2016 +0200 patch 7.4.1865 Problem: Memory leaks in tet49. (Dominique Pelle) Solution: Use NULL instead of an empty string.
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Jun 2016 22:15:05 +0200
parents 9652f2e50ea1
children fe7386df8418
files src/eval.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 		}
 
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1865,
+/**/
     1864,
 /**/
     1863,