mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Prevent implicit memset
This commit is contained in:
parent
5ea70ffb2e
commit
a54af2f2c1
@ -4013,13 +4013,35 @@ static int xmb_list_push(void *data, void *userdata,
|
||||
|
||||
static bool xmb_menu_init_list(void *data)
|
||||
{
|
||||
menu_displaylist_info_t info = {0};
|
||||
menu_displaylist_info_t info;
|
||||
|
||||
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
||||
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
|
||||
|
||||
info.need_sort = false;
|
||||
info.need_refresh = false;
|
||||
info.need_entries_refresh = false;
|
||||
info.need_push = false;
|
||||
info.push_builtin_cores = false;
|
||||
info.download_core = false;
|
||||
info.need_clear = false;
|
||||
info.need_navigation_clear = false;
|
||||
info.list = NULL;
|
||||
info.menu_list = NULL;
|
||||
info.path[0] = '\0';
|
||||
info.path_b[0] = '\0';
|
||||
info.path_c[0] = '\0';
|
||||
strlcpy(info.label,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_MAIN_MENU), sizeof(info.label));
|
||||
info.enum_idx = MENU_ENUM_LABEL_MAIN_MENU;
|
||||
info.label_hash = 0;
|
||||
strlcpy(info.exts,
|
||||
file_path_str(FILE_PATH_LPL_EXTENSION_NO_DOT), sizeof(info.exts));
|
||||
info.type = 0;
|
||||
info.type_default = FILE_TYPE_PLAIN;
|
||||
info.directory_ptr = 0;
|
||||
info.flags = 0;
|
||||
info.enum_idx = MENU_ENUM_LABEL_MAIN_MENU;
|
||||
info.setting = NULL;
|
||||
|
||||
menu_entries_append_enum(menu_stack, info.path,
|
||||
info.label,
|
||||
|
Loading…
Reference in New Issue
Block a user