0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

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)
This commit is contained in:
Bram Moolenaar
2020-09-12 21:04:23 +02:00
parent b0fa5e17c5
commit 8f13d82fa6
3 changed files with 4 additions and 2 deletions

View File

@@ -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: