]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4794: compiler warning for not initialized variable v8.2.4794
authorBram Moolenaar <Bram@vim.org>
Wed, 20 Apr 2022 09:22:54 +0000 (10:22 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 20 Apr 2022 09:22:54 +0000 (10:22 +0100)
Problem:    Compiler warning for not initialized variable.
Solution:   Initialize the variable. (John Marriott)

src/indent.c
src/version.c

index be9dd4b5bc1258e8851243f7b2edfd06548f5623..9efa52753ecda60469aa3bf20ba24f07ce1a1166 100644 (file)
@@ -1046,7 +1046,7 @@ inindent(int extra)
     void
 op_reindent(oparg_T *oap, int (*how)(void))
 {
-    long       i;
+    long       i = 0;
     char_u     *l;
     int                amount;
     linenr_T   first_changed = 0;
index 901df55c7034ab1389d6d6666651d38fc6115d88..728f8bb8184413eb2da896c052cd3e56ab4d0961 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4794,
 /**/
     4793,
 /**/