]> granicus.if.org Git - vim/commitdiff
patch 7.4.1865 v7.4.1865
authorBram Moolenaar <Bram@vim.org>
Wed, 1 Jun 2016 20:08:17 +0000 (22:08 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 1 Jun 2016 20:08:17 +0000 (22:08 +0200)
Problem:    Memory leaks in tet49. (Dominique Pelle)
Solution:   Use NULL instead of an empty string.

src/eval.c
src/version.c

index adfe8f899a8e684f639dd0584db5eb78f5a12787..3d0abf3692e3445598656fe6a71b0d76a12b2848 100644 (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;
                }
 
index a934fe72e62ba3f964b814ced566f4a6fe81a489..7952a140c57701d32e61f70957ed12b04577c8ec 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1865,
 /**/
     1864,
 /**/