commit | 8f13d82fa6ac6faa1a91076e99000a8f02180e8e | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Sep 12 21:04:23 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Sep 12 21:04:23 2020 +0200 |
tree | 01b6677b39a50b1d4914bf3406cb252c32c7eb88 | |
parent | b0fa5e17c587d9c71596bd10836918af713ffff6 [diff] [blame] |
patch 8.2.1670: a couple of gcc compiler warnings Problem: A couple of gcc compiler warnings. Solution: Initialize local variables. (Dominique Pellé, closes #6944)
diff --git a/src/memline.c b/src/memline.c index 1c594d4..54f8c19 100644 --- a/src/memline.c +++ b/src/memline.c
@@ -2634,7 +2634,7 @@ 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: