diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-20 18:07:25 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-21 07:24:50 +0800 |
commit | f9c8ba0b8594d24168004c731c5fe33ae0f9a4df (patch) | |
tree | 6555303656b2dfe77c556ffad21eb1ee6925ade0 /src | |
parent | f8b832b171d95aa3fb8e97a013d4a5717ff593c1 (diff) | |
download | rneovim-f9c8ba0b8594d24168004c731c5fe33ae0f9a4df.tar.gz rneovim-f9c8ba0b8594d24168004c731c5fe33ae0f9a4df.tar.bz2 rneovim-f9c8ba0b8594d24168004c731c5fe33ae0f9a4df.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |