]> granicus.if.org Git - vim/commitdiff
patch 8.2.2027: Coverity warnts for uninitialized field v8.2.2027
authorBram Moolenaar <Bram@vim.org>
Sat, 21 Nov 2020 12:58:50 +0000 (13:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 21 Nov 2020 12:58:50 +0000 (13:58 +0100)
Problem:    Coverity warnts for uninitialized field.
Solution:   Set "v_lock".

src/list.c
src/version.c

index 1a82a34077731f244540fbe2d80244da9355b3f6..e75a2a7413fff3d66c1582bccee05ec1e494a4e0 100644 (file)
@@ -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;
index 80253553ef1469a59d97d04c54f3f34adba8d46b..95a0f8ca3ed6fa6085fa6bb05898b5f8843f9283 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2027,
 /**/
     2026,
 /**/