(menu_entries.c) Separate initialization loop for selection_buf array

This commit is contained in:
twinaphex 2015-10-27 10:51:33 +01:00
parent 30fb40ad87
commit 5032f59f54

View File

@ -97,10 +97,10 @@ static menu_list_t *menu_list_new(void)
list->selection_buf_size = 1;
for (i = 0; i < list->menu_stack_size; i++)
{
list->menu_stack[i] = calloc(1, sizeof(*list->menu_stack[i]));
for (i = 0; i < list->selection_buf_size; i++)
list->selection_buf[i] = calloc(1, sizeof(*list->selection_buf[i]));
}
return list;