]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0072: compiler warning for uninitialized variable v9.0.0072
authorBram Moolenaar <Bram@vim.org>
Mon, 25 Jul 2022 20:15:45 +0000 (21:15 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 25 Jul 2022 20:15:45 +0000 (21:15 +0100)
Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize it. (John Marriott)

src/drawline.c
src/version.c

index d474de26c0c5fb62c11c8745e9fd727e34ecc37d..76176ab24c4a3f1559989462dc8eb156a81937ce 100644 (file)
@@ -819,7 +819,7 @@ win_line(
     {
        char_u          *prev_ptr = ptr;
        chartabsize_T   cts;
-       int             charsize;
+       int             charsize = 0;
 
        init_chartabsize_arg(&cts, wp, lnum, vcol, line, ptr);
        while (cts.cts_vcol < v && *cts.cts_ptr != NUL)
index 2f2d54022015abe70081c5662723bc5b57f22c5f..ed01c9e5cbfc0d6d49b4d609a23c1c3b6b892b7e 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    72,
 /**/
     71,
 /**/