0
0
mirror of https://github.com/vim/vim.git synced 2025-10-24 08:54:47 -04:00

patch 9.1.1481: gcc complains about uninitialized variable

Problem:  gcc complains about uninitialized variable
          (Tony Mechelynck, after v9.1.1476)
Solution: initialize variable

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-06-25 20:54:11 +02:00
parent fa0b069728
commit 42d2c5e803
2 changed files with 3 additions and 1 deletions

View File

@@ -656,7 +656,7 @@ ex_uniq(exarg_T *eap)
linenr_T count = eap->line2 - eap->line1 + 1;
char_u *p;
char_u *s;
char_u save_c; // temporary character storage
char_u save_c = 0; // temporary character storage
int keep_only_unique = FALSE;
int keep_only_not_unique = eap->forceit ? TRUE : FALSE;
long deleted = 0;