mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
(dir_list) Use string_is_equal_memcmp_fast
This commit is contained in:
parent
26d6aee1eb
commit
c8ad747a46
@ -112,13 +112,16 @@ static int dir_list_read(const char *dir,
|
||||
|
||||
while (retro_readdir(entry))
|
||||
{
|
||||
size_t name_len;
|
||||
union string_list_elem_attr attr;
|
||||
char file_path[PATH_MAX_LENGTH];
|
||||
const char *name = retro_dirent_get_name(entry);
|
||||
const char *name = retro_dirent_get_name(entry);
|
||||
|
||||
if (!include_hidden && *name == '.')
|
||||
continue;
|
||||
if (!strcmp(name, ".") || !strcmp(name, ".."))
|
||||
name_len = strlen(name);
|
||||
if ( string_is_equal_memcmp_fast(name, ".", name_len) ||
|
||||
string_is_equal_memcmp_fast(name, "..", name_len))
|
||||
continue;
|
||||
|
||||
file_path[0] = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user