Mercurial > vim
comparison src/ops.c @ 12329:0b10cff73322 v8.0.1044
patch 8.0.1044: warning for uninitialized variable
commit https://github.com/vim/vim/commit/2254a8ad0cb596a0a0863b1af92353f018c0b355
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 3 14:03:43 2017 +0200
patch 8.0.1044: warning for uninitialized variable
Problem: Warning for uninitialized variable. (John Marriott)
Solution: Initialize ind_pre.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 03 Sep 2017 14:15:03 +0200 |
parents | 17ed65e87db1 |
children | d1cbe8cb05d0 |
comparison
equal
deleted
inserted
replaced
12328:36aad5463871 | 12329:0b10cff73322 |
---|---|
2505 void | 2505 void |
2506 op_insert(oparg_T *oap, long count1) | 2506 op_insert(oparg_T *oap, long count1) |
2507 { | 2507 { |
2508 long ins_len, pre_textlen = 0; | 2508 long ins_len, pre_textlen = 0; |
2509 char_u *firstline, *ins_text; | 2509 char_u *firstline, *ins_text; |
2510 colnr_T ind_pre, ind_post; | 2510 colnr_T ind_pre = 0, ind_post; |
2511 struct block_def bd; | 2511 struct block_def bd; |
2512 int i; | 2512 int i; |
2513 pos_T t1; | 2513 pos_T t1; |
2514 | 2514 |
2515 /* edit() changes this - record it for OP_APPEND */ | 2515 /* edit() changes this - record it for OP_APPEND */ |