mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(database_info.c) Remove implicit memsets
This commit is contained in:
parent
b8f8f159c5
commit
6b48c6ee7f
@ -433,9 +433,11 @@ database_info_handle_t *database_info_dir_init(const char *dir,
|
||||
|
||||
for (i = 0; i < archive_list->size; i++)
|
||||
{
|
||||
char new_path[PATH_MAX_LENGTH] = {0};
|
||||
char new_path[PATH_MAX_LENGTH];
|
||||
size_t path_len = strlen(path);
|
||||
|
||||
new_path[0] = '\0';
|
||||
|
||||
strlcpy(new_path, path, sizeof(new_path));
|
||||
|
||||
if (path_len + strlen(archive_list->elems[i].data)
|
||||
@ -493,9 +495,11 @@ database_info_handle_t *database_info_file_init(const char *path,
|
||||
|
||||
for (i = 0; i < archive_list->size; i++)
|
||||
{
|
||||
char new_path[PATH_MAX_LENGTH] = {0};
|
||||
char new_path[PATH_MAX_LENGTH];
|
||||
size_t path_len = strlen(path);
|
||||
|
||||
new_path[0] = '\0';
|
||||
|
||||
strlcpy(new_path, path, sizeof(new_path));
|
||||
|
||||
if (path_len + strlen(archive_list->elems[i].data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user