Skip to content

Commit d43c5e0

Browse files
brammooldouglaskayama
authored andcommitted
updated for version 7.4.597
Problem: Cannot change the result of systemlist(). Solution: Initialize v_lock. (Yukihiro Nakadaira)
1 parent 791b13b commit d43c5e0

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/eval.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6007,6 +6007,7 @@ list_free(l, recurse)
60076007

60086008
/*
60096009
* Allocate a list item.
6010+
* It is not initialized, don't forget to set v_lock.
60106011
*/
60116012
listitem_T *
60126013
listitem_alloc()
@@ -18713,6 +18714,7 @@ get_cmd_output_as_rettv(argvars, rettv, retlist)
1871318714
goto errret;
1871418715
}
1871518716
li->li_tv.v_type = VAR_STRING;
18717+
li->li_tv.v_lock = 0;
1871618718
li->li_tv.vval.v_string = s;
1871718719
list_append(list, li);
1871818720
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
597,
744746
/**/
745747
596,
746748
/**/

0 commit comments

Comments
 (0)