summaryrefslogtreecommitdiffstats
path: root/src/indent.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-20 10:22:54 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-20 10:22:54 +0100
commit4c84dd33ad739237bb38bb4e51702af972b5e507 (patch)
treeaaf77983d71fd0c39b53314e73f2f9dfe1e12317 /src/indent.c
parent928a13135629fa8e73796760077b1b877918a080 (diff)
patch 8.2.4794: compiler warning for not initialized variablev8.2.4794
Problem: Compiler warning for not initialized variable. Solution: Initialize the variable. (John Marriott)
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index be9dd4b5bc..9efa52753e 100644
--- 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;