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:
zeertzjq
2023-06-17 06:23:07 +08:00
committed by GitHub
parent 8376e8700b
commit 4e63104c47

View File

@@ -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);