1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Prevent some implicit memsets

This commit is contained in:
twinaphex 2017-04-20 09:21:08 +02:00
parent 96a9730a08
commit 1cc350bfdb
2 changed files with 10 additions and 2 deletions

View File

@ -471,13 +471,15 @@ error:
database_info_handle_t *database_info_file_init(const char *path,
enum database_type type)
{
union string_list_elem_attr attr = {0};
union string_list_elem_attr attr;
database_info_handle_t *db = (database_info_handle_t*)
calloc(1, sizeof(*db));
if (!db)
return NULL;
attr.i = 0;
db->list = string_list_new();
if (!db->list)

View File

@ -747,7 +747,13 @@ static enum runloop_state runloop_check_state(
if (runloop_core_shutdown_initiated && settings->load_dummy_on_core_shutdown)
{
content_ctx_info_t content_info = {0};
content_ctx_info_t content_info;
content_info.argc = 0;
content_info.argv = NULL;
content_info.args = NULL;
content_info.environ_get = NULL;
if (!task_push_start_dummy_core(&content_info))
return RUNLOOP_STATE_QUIT;