changeset 29461:69693a62f2f4 v9.0.0072

patch 9.0.0072: compiler warning for uninitialized variable Commit: https://github.com/vim/vim/commit/6d023f98dfbad6215a4e94ed7df28f8972b3ff9d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 25 21:15:45 2022 +0100 patch 9.0.0072: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. Solution: Initialize it. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Mon, 25 Jul 2022 22:30:03 +0200
parents 816e805436e9
children 69dae6485ca8
files src/drawline.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -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)
--- a/src/version.c
+++ b/src/version.c
@@ -736,6 +736,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    72,
+/**/
     71,
 /**/
     70,