aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-06-17 06:23:07 +0800
committerGitHub <noreply@github.com>2023-06-17 06:23:07 +0800
commit4e63104c47132adee7d1dc678d69d80e867371bf (patch)
treefaafe412539aa9ea73ff9096102ebf69716f6e85 /src
parent8376e8700b3d4f8ab96751612c3f4439a43b06f4 (diff)
downloadrneovim-4e63104c47132adee7d1dc678d69d80e867371bf.tar.gz
rneovim-4e63104c47132adee7d1dc678d69d80e867371bf.tar.bz2
rneovim-4e63104c47132adee7d1dc678d69d80e867371bf.zip
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 (limited to 'src')
-rw-r--r--src/nvim/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index d24ac1c233..475415272a 100644
--- 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);