]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1481: gcc complains about uninitialized variable v9.1.1481
authorChristian Brabandt <cb@256bit.org>
Wed, 25 Jun 2025 18:54:11 +0000 (20:54 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 25 Jun 2025 18:54:11 +0000 (20:54 +0200)
Problem:  gcc complains about uninitialized variable
          (Tony Mechelynck, after v9.1.1476)
Solution: initialize variable

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

index c4a86c90e936e52f51a08d3314550b71fa8f2d88..5d9b7221366fead3257313bbf011937187f0ac4b 100644 (file)
@@ -656,7 +656,7 @@ ex_uniq(exarg_T *eap)
     linenr_T   count = eap->line2 - eap->line1 + 1;
     char_u     *p;
     char_u     *s;
-    char_u     save_c;                 // temporary character storage
+    char_u     save_c = 0;             // temporary character storage
     int                keep_only_unique = FALSE;
     int                keep_only_not_unique = eap->forceit ? TRUE : FALSE;
     long       deleted = 0;
index 3b5a3da74cec3828d5052224b3ec7b36c725f29c..c7c66ec0bce6bcd2534eaae6d85279f57efdfd64 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1481,
 /**/
     1480,
 /**/