summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-06 17:44:38 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-06 17:44:38 +0100
commit6d11f3b8919bfbb6d5d51e6d280a2e685fb883b8 (patch)
tree7b12c32a494649c994bf8c1b416e4efc97c23ccd /src/edit.c
parentbf3250a8ad39797e3ccdac82d20c6f19533419e4 (diff)
downloadvim-git-6d11f3b8919bfbb6d5d51e6d280a2e685fb883b8.tar.gz
patch 8.1.0699: compiler warning for uninitialized variablev8.1.0699
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck) Solution: Add a dummy init.
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index d4951d9f3..813e95d34 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -7970,7 +7970,7 @@ replace_do_bs(int limit_col)
if (cc > 0)
{
#ifdef FEAT_TEXT_PROP
- size_t len_before;
+ size_t len_before = 0; // init to shut up GCC
if (curbuf->b_has_textprop)
{