Prevent uninitialized variable Coverity warning

This commit is contained in:
twinaphex 2016-10-26 09:30:00 +02:00
parent a64a93be6a
commit 01c6748f72

View File

@ -87,11 +87,11 @@ static void cb_net_generic_subdir(void *task_data, void *user_data, const char *
http_transfer_data_t *data = (http_transfer_data_t*)task_data;
menu_file_transfer_t *state = (menu_file_transfer_t*)user_data;
subdir_path[0] = '\0';
if (!data || err)
goto finish;
subdir_path[0] = '\0';
memcpy(subdir_path, data->data, data->len * sizeof(char));
subdir_path[data->len] = '\0';