From f9c8ba0b8594d24168004c731c5fe33ae0f9a4df Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 20 Apr 2022 18:07:25 +0800 Subject: [PATCH] vim-patch:8.2.4794: compiler warning for not initialized variable Problem: Compiler warning for not initialized variable. Solution: Initialize the variable. (John Marriott) https://github.com/vim/vim/commit/4c84dd33ad739237bb38bb4e51702af972b5e507 --- src/nvim/ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 075497cd18..36c2513810 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -636,7 +636,7 @@ static void block_insert(oparg_T *oap, char_u *s, int b_insert, struct block_def */ void op_reindent(oparg_T *oap, Indenter how) { - long i; + long i = 0; char_u *l; int amount; linenr_T first_changed = 0;