neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 3bf27b2c74aaa800c17790d03a0dcf640f8e266a
parent d574f9479d9feab34507dc740311198f4ab35e49
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Thu, 26 Jun 2025 07:30:26 +0800

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

https://github.com/vim/vim/commit/42d2c5e803cec6ec661217fa1ae630a2f7c463bc

Co-authored-by: Christian Brabandt <cb@256bit.org>

Diffstat:
Msrc/nvim/ex_cmds.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c @@ -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;