From a54af2f2c1ec156ff43861bfd61836b3ba377f8f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 27 Apr 2017 01:27:02 +0200 Subject: [PATCH] Prevent implicit memset --- menu/drivers/xmb.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 28a527fa58..b6723c0f72 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -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,