(database_info.c) Remove implicit memsets

This commit is contained in:
twinaphex 2016-10-08 18:44:24 +02:00
parent b8f8f159c5
commit 6b48c6ee7f

View File

@ -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)