Prevent Coverity warning

This commit is contained in:
twinaphex 2016-10-12 13:44:16 +02:00
parent ef04838b22
commit 2fe10a0a23

View File

@ -83,15 +83,13 @@ size_t core_len;
static void cb_net_generic_subdir(void *task_data, void *user_data, const char *err)
{
char subdir_path[PATH_MAX_LENGTH];
char subdir_path[PATH_MAX_LENGTH] = {0};
http_transfer_data_t *data = (http_transfer_data_t*)task_data;
menu_file_transfer_t *state = (menu_file_transfer_t*)user_data;
if (!data || err)
goto finish;
subdir_path[0] = '\0';
memcpy(subdir_path, data->data, data->len * sizeof(char));
subdir_path[data->len] = '\0';