Blame SOURCES/7.4.597

d6ba96
To: vim_dev@googlegroups.com
d6ba96
Subject: Patch 7.4.597
d6ba96
Fcc: outbox
d6ba96
From: Bram Moolenaar <Bram@moolenaar.net>
d6ba96
Mime-Version: 1.0
d6ba96
Content-Type: text/plain; charset=UTF-8
d6ba96
Content-Transfer-Encoding: 8bit
d6ba96
------------
d6ba96
d6ba96
Patch 7.4.597
d6ba96
Problem:    Cannot change the result of systemlist().
d6ba96
Solution:   Initialize v_lock. (Yukihiro Nakadaira)
d6ba96
Files:	    src/eval.c
d6ba96
d6ba96
d6ba96
*** ../vim-7.4.596/src/eval.c	2015-01-14 19:00:33.842522901 +0100
d6ba96
--- src/eval.c	2015-01-27 13:49:22.123112397 +0100
d6ba96
***************
d6ba96
*** 6007,6012 ****
d6ba96
--- 6007,6013 ----
d6ba96
  
d6ba96
  /*
d6ba96
   * Allocate a list item.
d6ba96
+  * It is not initialized, don't forget to set v_lock.
d6ba96
   */
d6ba96
      listitem_T *
d6ba96
  listitem_alloc()
d6ba96
***************
d6ba96
*** 18713,18718 ****
d6ba96
--- 18714,18720 ----
d6ba96
  		goto errret;
d6ba96
  	    }
d6ba96
  	    li->li_tv.v_type = VAR_STRING;
d6ba96
+ 	    li->li_tv.v_lock = 0;
d6ba96
  	    li->li_tv.vval.v_string = s;
d6ba96
  	    list_append(list, li);
d6ba96
  	}
d6ba96
*** ../vim-7.4.596/src/version.c	2015-01-27 13:33:18.737649629 +0100
d6ba96
--- src/version.c	2015-01-27 13:48:25.883727538 +0100
d6ba96
***************
d6ba96
*** 743,744 ****
d6ba96
--- 743,746 ----
d6ba96
  {   /* Add new patch number below this line */
d6ba96
+ /**/
d6ba96
+     597,
d6ba96
  /**/
d6ba96
d6ba96
-- 
d6ba96
"Microsoft is like Coke.  It's a secret formula, all the money is from
d6ba96
distribution, and their goal is to get Coke everywhere.  Open source is like
d6ba96
selling water.  There are water companies like Perrier and Poland Spring, but
d6ba96
you're competing with something that's free."   -- Carl Howe
d6ba96
d6ba96
d6ba96
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
d6ba96
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
d6ba96
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
d6ba96
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///