changeset 28540:63e9b0016a6c v8.2.4794

patch 8.2.4794: compiler warning for not initialized variable Commit: https://github.com/vim/vim/commit/4c84dd33ad739237bb38bb4e51702af972b5e507 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 20 10:22:54 2022 +0100 patch 8.2.4794: compiler warning for not initialized variable Problem: Compiler warning for not initialized variable. Solution: Initialize the variable. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Wed, 20 Apr 2022 11:30:05 +0200
parents 86ad381f275f
children cf8a9a334edd
files src/indent.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/indent.c
+++ b/src/indent.c
@@ -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;
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4794,
+/**/
     4793,
 /**/
     4792,