vim-patch:8.2.2027: Coverity warnts for uninitialized field

Problem:    Coverity warnts for uninitialized field.
Solution:   Set "v_lock".
9681f71392
This commit is contained in:
Jan Edmund Lazo
2020-11-21 15:18:59 -05:00
parent 5a4f049c38
commit ce3668ed39

View File

@@ -725,7 +725,7 @@ int tv_list_concat(list_T *const l1, list_T *const l2, typval_T *const tv)
list_T *l; list_T *l;
tv->v_type = VAR_LIST; tv->v_type = VAR_LIST;
tv->v_lock = VAR_UNLOCKED;
if (l1 == NULL && l2 == NULL) { if (l1 == NULL && l2 == NULL) {
l = NULL; l = NULL;
} else if (l1 == NULL) { } else if (l1 == NULL) {