Mercurial > vim
changeset 22242:f7871f02ddcd v8.2.1670
patch 8.2.1670: a couple of gcc compiler warnings
Commit: https://github.com/vim/vim/commit/8f13d82fa6ac6faa1a91076e99000a8f02180e8e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 12 21:04:23 2020 +0200
patch 8.2.1670: a couple of gcc compiler warnings
Problem: A couple of gcc compiler warnings.
Solution: Initialize local variables. (Dominique Pell?, closes https://github.com/vim/vim/issues/6944)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Sep 2020 21:15:03 +0200 |
parents | d99599baeaf8 |
children | a308c4737b02 |
files | src/memline.c src/option.c src/version.c |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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: