commit | 2254a8ad0cb596a0a0863b1af92353f018c0b355 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Sep 03 14:03:43 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Sep 03 14:03:43 2017 +0200 |
tree | 8cfa5e8c1bcf95e8f07b4eb20f3ec39d23ba30ea | |
parent | 4ec86ddd77a89766e42bd0a6cfcf10af4c3d03b2 [diff] [blame] |
patch 8.0.1044: warning for uninitialized variable Problem: Warning for uninitialized variable. (John Marriott) Solution: Initialize ind_pre.
diff --git a/src/ops.c b/src/ops.c index e8308bb..6fb6947 100644 --- a/src/ops.c +++ b/src/ops.c
@@ -2507,7 +2507,7 @@ { long ins_len, pre_textlen = 0; char_u *firstline, *ins_text; - colnr_T ind_pre, ind_post; + colnr_T ind_pre = 0, ind_post; struct block_def bd; int i; pos_T t1;