]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1333: Coverity: complains about unutilized variable v9.1.1333
authorChristian Brabandt <cb@256bit.org>
Tue, 22 Apr 2025 18:01:04 +0000 (20:01 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 22 Apr 2025 18:01:04 +0000 (20:01 +0200)
Problem:  Coverity: complains about unutilized variable
Solution: initialize typval properly
          (author)

Fixes: Coverity issue: 1646573
       tmp.v_lock is left unitialized
related: #17189

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/typval.c
src/version.c

index b9f8f1c1609106028963a365e84cb476c5800da8..db439cbd616a286ace3387bb0dd2d41b28576e9e 100644 (file)
@@ -1305,6 +1305,7 @@ tv_stringify(typval_T *varp, char_u *buf)
     {
        typval_T tmp;
 
+       init_tv(&tmp);
        f_string(varp, &tmp);
        tv_get_string_buf(&tmp, buf);
        clear_tv(varp);
index 35e71ca71cc8821934bebc87ea15c80782402210..cd58d6113494d8b7e16106c0e516b81007e39fb8 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1333,
 /**/
     1332,
 /**/