changeset 32671:031c73248fa7 v9.0.1666

patch 9.0.1666: compiler may warn for uninitialized variable Commit: https://github.com/vim/vim/commit/a2a90d5e202c3f8c5cbbf945b94833007b5711e7 Author: Christian Brabandt <cb@256bit.org> Date: Mon Jun 26 18:48:09 2023 +0100 patch 9.0.1666: compiler may warn for uninitialized variable Problem: Compiler may warn for uninitialized variable. Solution: Initialize this_props_len. (Christian Brabandt, closes https://github.com/vim/vim/issues/12599)
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Jun 2023 20:00:03 +0200
parents 695b50472e85
children be673a3a79f3
files src/memline.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/memline.c
+++ b/src/memline.c
@@ -3626,7 +3626,7 @@ adjust_text_props_for_delete(
     int		idx;
     int		line_start;
     long	line_size;
-    int		this_props_len;
+    int		this_props_len = 0;
     char_u	*text;
     size_t	textlen;
     int		found;
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1666,
+/**/
     1665,
 /**/
     1664,