1
0
forked from aniani/vim

Fix crash when no item in 'path' is used for :find completion.

This commit is contained in:
Bram Moolenaar
2010-08-04 12:39:44 +02:00
parent a68cac57de
commit 006d2b036b

View File

@@ -9593,6 +9593,8 @@ expand_in_path(gap, pattern, flags)
expand_path_option(curdir, &path_ga);
vim_free(curdir);
if (path_ga.ga_len == 0)
return 0;
path_list = (char_u **)(path_ga.ga_data);
# ifdef WIN3264
if ((file_pattern = alloc((unsigned)MAXPATHL)) == NULL)