mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 00:49:47 +00:00
Prevent uninitialized variable Coverity warning
This commit is contained in:
parent
a64a93be6a
commit
01c6748f72
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user