0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.1.1186: readdir() allocates list twice

Problem:    readdir() allocates list twice.
Solution:   Remove second allocation.  Also check for zero length.
This commit is contained in:
Bram Moolenaar
2019-04-19 15:20:46 +02:00
parent 86ec6d7e1e
commit 334ad41504
2 changed files with 4 additions and 7 deletions

View File

@@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1186,
/**/
1185,
/**/