diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-11-25 16:16:08 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-11-25 16:16:08 -0500 |
commit | 3bbbeaf2c9658222f31c29bc0ab27b9f125fb27c (patch) | |
tree | 7bbe180cba2b9261936ac3206fa3060fab4a7e7b /src | |
parent | c2479a1e63b047d89d3cec9d1d45885d8c669d79 (diff) | |
parent | ea8cc88e6ab4a6c7288d2364d9eba6417a7de6cd (diff) | |
download | rneovim-3bbbeaf2c9658222f31c29bc0ab27b9f125fb27c.tar.gz rneovim-3bbbeaf2c9658222f31c29bc0ab27b9f125fb27c.tar.bz2 rneovim-3bbbeaf2c9658222f31c29bc0ab27b9f125fb27c.zip |
Merge pull request #1552 from equalsraf/tb-fix-1530
add missing refcount increment for systemlist()
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 1a80198515..5975777261 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -14588,8 +14588,7 @@ static void get_system_output_as_rettv(typval_T *argvars, typval_T *rettv, if (res == NULL) { if (retlist) { // return an empty list when there's no output - rettv->v_type = VAR_LIST; - rettv->vval.v_list = list_alloc(); + rettv_list_alloc(rettv); } return; } |