diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-23 09:59:41 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-23 10:00:53 -0400 |
commit | 27fbffeb4f56a76a24a8d8b348caf6f733f2fc4d (patch) | |
tree | 06a01c81d5a259df03b5ce7d84f238337619f104 /src | |
parent | fb68c97ce8950fdf598a0b7ff9be7cc3fa624f2e (diff) | |
download | rneovim-27fbffeb4f56a76a24a8d8b348caf6f733f2fc4d.tar.gz rneovim-27fbffeb4f56a76a24a8d8b348caf6f733f2fc4d.tar.bz2 rneovim-27fbffeb4f56a76a24a8d8b348caf6f733f2fc4d.zip |
vim-patch:8.0.1044: warning for uninitialized variable
Problem: Warning for uninitialized variable. (John Marriott)
Solution: Initialize ind_pre.
https://github.com/vim/vim/commit/2254a8ad0cb596a0a0863b1af92353f018c0b355
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 4d8403bee8..d6f60f33da 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -2014,7 +2014,7 @@ void op_insert(oparg_T *oap, long count1) { long ins_len, pre_textlen = 0; char_u *firstline, *ins_text; - colnr_T ind_pre; + colnr_T ind_pre = 0; struct block_def bd; int i; pos_T t1; |