REVIEWED: ScanDirectoryFilesRecursively(), fix #2704

This commit is contained in:
Ray 2022-09-19 18:20:36 +02:00
parent 6e8f3b0f45
commit 5530a3ceb8

View File

@ -5146,7 +5146,7 @@ static void ScanDirectoryFiles(const char *basePath, FilePathList *files, const
// Scan all files and directories recursively from a base path
static void ScanDirectoryFilesRecursively(const char *basePath, FilePathList *files, const char *filter)
{
static char path[MAX_FILEPATH_LENGTH] = { 0 };
char path[MAX_FILEPATH_LENGTH] = { 0 };
memset(path, 0, MAX_FILEPATH_LENGTH);
struct dirent *dp = NULL;