mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 19:21:06 +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
|
do
|
||||||
{
|
{
|
||||||
|
char file_path[PATH_MAX_LENGTH];
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
char file_path[PATH_MAX_LENGTH] = {0};
|
|
||||||
const char *name = ffd.cFileName;
|
const char *name = ffd.cFileName;
|
||||||
const char *file_ext = path_get_extension(name);
|
const char *file_ext = path_get_extension(name);
|
||||||
bool is_dir = ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
|
bool is_dir = ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
|
||||||
@ -264,8 +264,8 @@ error:
|
|||||||
|
|
||||||
while ((entry = readdir(directory)))
|
while ((entry = readdir(directory)))
|
||||||
{
|
{
|
||||||
|
char file_path[PATH_MAX_LENGTH];
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
char file_path[PATH_MAX_LENGTH] = {0};
|
|
||||||
const char *name = entry->d_name;
|
const char *name = entry->d_name;
|
||||||
const char *file_ext = path_get_extension(name);
|
const char *file_ext = path_get_extension(name);
|
||||||
bool is_dir = false;
|
bool is_dir = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user