diff options
author | Bram Moolenaar <bram@vim.org> | 2015-01-27 13:49:31 +0100 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2015-01-27 13:49:31 +0100 |
commit | b2c3cbca037dc185ed8f7896c96f47c4ccbc0128 (patch) | |
tree | 8abb7673d161b619ebb79c758266355aeb82a6b7 | |
parent | b6053f34948bf6496a0fdfc839ba4b45d0eab40e (diff) | |
download | vim-b2c3cbca037dc185ed8f7896c96f47c4ccbc0128.tar.gz |
Problem: Cannot change the result of systemlist().
Solution: Initialize v_lock. (Yukihiro Nakadaira)
-rw-r--r-- | src/eval.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -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, retlist) 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); } diff --git a/src/version.c b/src/version.c index 5cb09f88..f0107fab 100644 --- 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, |