vim-patch:9.1.1481: gcc complains about uninitialized variable

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

42d2c5e803

Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2025-06-26 07:30:26 +08:00
parent d574f9479d
commit 3bf27b2c74

View File

@ -801,7 +801,7 @@ void ex_uniq(exarg_T *eap)
} else if (regmatch.regprog != NULL) {
end_col = 0;
}
char save_c; // temporary character storage
char save_c = NUL; // temporary character storage
if (end_col > 0) {
save_c = s[end_col];
s[end_col] = NUL;