vim-patch:7.4.597 #2658

Problem:    Cannot change the result of systemlist().
Solution:   Initialize v_lock. (Yukihiro Nakadaira)

https://github.com/vim/vim/commit/v7-4-597

See https://groups.google.com/d/msg/vim_dev/WXCfHMeqjfk/n2PjNwZ2bzIJ
This commit is contained in:
David Bürgin
2015-05-14 20:02:29 +02:00
committed by Michael Reed
parent 7341b285d0
commit b1403e7d44
2 changed files with 3 additions and 1 deletions

View File

@@ -4790,6 +4790,7 @@ list_free (
/* /*
* Allocate a list item. * Allocate a list item.
* It is not initialized, don't forget to set v_lock.
*/ */
listitem_T *listitem_alloc(void) FUNC_ATTR_NONNULL_RET listitem_T *listitem_alloc(void) FUNC_ATTR_NONNULL_RET
{ {
@@ -14930,6 +14931,7 @@ static list_T* string_to_list(char_u *str, size_t len, bool keepempty)
listitem_T *li = listitem_alloc(); listitem_T *li = listitem_alloc();
li->li_tv.v_type = VAR_STRING; li->li_tv.v_type = VAR_STRING;
li->li_tv.v_lock = 0;
li->li_tv.vval.v_string = s; li->li_tv.vval.v_string = s;
list_append(list, li); list_append(list, li);
} }

View File

@@ -203,7 +203,7 @@ static int included_patches[] = {
//600, //600,
599, 599,
//598, //598,
//597, 597,
//596 NA //596 NA
595, 595,
594, 594,