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