neovim

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

commit 4e63104c47132adee7d1dc678d69d80e867371bf
parent 8376e8700b3d4f8ab96751612c3f4439a43b06f4
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sat, 17 Jun 2023 06:23:07 +0800

vim-patch:9.0.1637: compiler warning for uninitialized variable (#24042)

Problem:    Compiler warning for uninitialized variable.
Solution:   Move the variable to an inner block and initialize it. (Christian
            Brabandt, closes vim/vim#12549)

https://github.com/vim/vim/commit/54f50cbf6a470316a262e4389d62424e6f06b81c

The "eof" variable is not present in Nvim because it is only used by
FEAT_CRYPT.

Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat:
Msrc/nvim/fileio.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c @@ -3618,7 +3618,7 @@ bool match_file_list(char *list, char *sfname, char *ffname) // try all patterns in 'wildignore' char *p = list; while (*p) { - char buf[100]; + char buf[MAXPATHL]; copy_option_part(&p, buf, ARRAY_SIZE(buf), ","); char allow_dirs; char *regpat = file_pat_to_reg_pat(buf, NULL, &allow_dirs, false);