changeset 6541:c124a8f34ed1 v7.4.597

updated for version 7.4.597 Problem: Cannot change the result of systemlist(). Solution: Initialize v_lock. (Yukihiro Nakadaira)
author Bram Moolenaar <bram@vim.org>
date Tue, 27 Jan 2015 13:49:31 +0100
parents 781e6005524f
children f52b5c1d7bb0
files src/eval.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -6007,6 +6007,7 @@ list_free(l, recurse)
 
 /*
  * Allocate a list item.
+ * It is not initialized, don't forget to set v_lock.
  */
     listitem_T *
 listitem_alloc()
@@ -18713,6 +18714,7 @@ get_cmd_output_as_rettv(argvars, rettv, 
 		goto errret;
 	    }
 	    li->li_tv.v_type = VAR_STRING;
+	    li->li_tv.v_lock = 0;
 	    li->li_tv.vval.v_string = s;
 	    list_append(list, li);
 	}
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    597,
+/**/
     596,
 /**/
     595,