forked from aniani/vim
patch 8.2.2027: Coverity warnts for uninitialized field
Problem: Coverity warnts for uninitialized field. Solution: Set "v_lock".
This commit is contained in:
@@ -867,6 +867,7 @@ list_concat(list_T *l1, list_T *l2, typval_T *tv)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user