diff src/list.c @ 22961:6426acc72539 v8.2.2027

patch 8.2.2027: Coverity warnts for uninitialized field Commit: https://github.com/vim/vim/commit/9681f713924f4c51fa2ba3d6639639d4b1dba08a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 21 13:58:50 2020 +0100 patch 8.2.2027: Coverity warnts for uninitialized field Problem: Coverity warnts for uninitialized field. Solution: Set "v_lock".
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 Nov 2020 14:00:04 +0100
parents 52e64d340a98
children 4ba6c5eebb28
line wrap: on
line diff
--- a/src/list.c
+++ b/src/list.c
@@ -867,6 +867,7 @@ list_concat(list_T *l1, list_T *l2, typv
     if (l == NULL)
 	return FAIL;
     tv->v_type = VAR_LIST;
+    tv->v_lock = 0;
     tv->vval.v_list = l;
     if (l1 == NULL)
 	++l->lv_refcount;