summaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-12 21:04:23 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-12 21:04:23 +0200
commit8f13d82fa6ac6faa1a91076e99000a8f02180e8e (patch)
tree01b6677b39a50b1d4914bf3406cb252c32c7eb88 /src/memline.c
parentb0fa5e17c587d9c71596bd10836918af713ffff6 (diff)
downloadvim-git-8f13d82fa6ac6faa1a91076e99000a8f02180e8e.tar.gz
patch 8.2.1670: a couple of gcc compiler warningsv8.2.1670
Problem: A couple of gcc compiler warnings. Solution: Initialize local variables. (Dominique Pellé, closes #6944)
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memline.c b/src/memline.c
index 1c594d453..54f8c19b0 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -2634,7 +2634,7 @@ add_text_props_for_append(
int n;
char_u *props;
int new_len = 0; // init for gcc
- char_u *new_line;
+ char_u *new_line = NULL;
textprop_T prop;
// Make two rounds: