From 27fbffeb4f56a76a24a8d8b348caf6f733f2fc4d Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 23 Aug 2018 09:59:41 -0400 Subject: [PATCH] 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 --- 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 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;