mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
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)
54f50cbf6a
The "eof" variable is not present in Nvim because it is only used by
FEAT_CRYPT.
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user