From ee0a9c9d9802c376bbdeeb0747a10863221d24a2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 16 Oct 2016 01:04:46 +0200 Subject: [PATCH] menu_input_post_iterate - Prevent implicit memset --- menu/menu_input.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/menu/menu_input.c b/menu/menu_input.c index 6b7f834f1d..8b145ccb73 100644 --- a/menu/menu_input.c +++ b/menu/menu_input.c @@ -458,8 +458,8 @@ static int menu_input_pointer_post_iterate( void menu_input_post_iterate(int *ret, unsigned action) { size_t selection; + menu_entry_t entry; menu_file_list_cbs_t *cbs = NULL; - menu_entry_t entry = {{0}}; settings_t *settings = config_get_ptr(); file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0); @@ -469,6 +469,16 @@ void menu_input_post_iterate(int *ret, unsigned action) if (selection_buf) cbs = menu_entries_get_actiondata_at_offset(selection_buf, selection); + entry.path[0] = '\0'; + entry.label[0] = '\0'; + entry.value[0] = '\0'; + entry.rich_label[0] = '\0'; + entry.enum_idx = MSG_UNKNOWN; + entry.entry_idx = 0; + entry.idx = 0; + entry.type = 0; + entry.spacing = 0; + menu_entry_get(&entry, 0, selection, NULL, false); *ret = menu_input_mouse_frame(cbs, &entry, action);