]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1666: compiler may warn for uninitialized variable v9.0.1666
authorChristian Brabandt <cb@256bit.org>
Mon, 26 Jun 2023 17:48:09 +0000 (18:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 26 Jun 2023 17:48:09 +0000 (18:48 +0100)
Problem:    Compiler may warn for uninitialized variable.
Solution:   Initialize this_props_len. (Christian Brabandt, closes #12599)

src/memline.c
src/version.c

index 46e7d8a7967dd075ab930ba455aaf7001de16431..3483f09ae855b8292f9dc1e50ec2d1598d9ac958 100644 (file)
@@ -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;
index 9c451aef7ab5b90c6af8c49ae93d7b0a4637cfc0..948a94800e7d4cb77879c8ccdf50cd057843389b 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1666,
 /**/
     1665,
 /**/