mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user