mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
(dir_list.c) Prevent implicit memsets
This commit is contained in:
parent
ec039cc2b6
commit
3824812ac9
@ -232,8 +232,8 @@ struct string_list *dir_list_new(const char *dir,
|
||||
|
||||
do
|
||||
{
|
||||
char file_path[PATH_MAX_LENGTH];
|
||||
int ret = 0;
|
||||
char file_path[PATH_MAX_LENGTH] = {0};
|
||||
const char *name = ffd.cFileName;
|
||||
const char *file_ext = path_get_extension(name);
|
||||
bool is_dir = ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
|
||||
@ -264,8 +264,8 @@ error:
|
||||
|
||||
while ((entry = readdir(directory)))
|
||||
{
|
||||
char file_path[PATH_MAX_LENGTH];
|
||||
int ret = 0;
|
||||
char file_path[PATH_MAX_LENGTH] = {0};
|
||||
const char *name = entry->d_name;
|
||||
const char *file_ext = path_get_extension(name);
|
||||
bool is_dir = false;
|
||||
|
Loading…
Reference in New Issue
Block a user