mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
(menu_cbs.c) Directly initialize elem0/elem1
This commit is contained in:
parent
d72f9fe133
commit
c94d5c75f3
@ -47,14 +47,16 @@ void menu_cbs_init(void *data,
|
|||||||
const char *path, const char *label,
|
const char *path, const char *label,
|
||||||
unsigned type, size_t idx)
|
unsigned type, size_t idx)
|
||||||
{
|
{
|
||||||
char elem0[PATH_MAX_LENGTH], elem1[PATH_MAX_LENGTH];
|
char elem0[PATH_MAX_LENGTH] = {0};
|
||||||
int ret = 0;
|
char elem1[PATH_MAX_LENGTH] = {0};
|
||||||
struct string_list *str_list = NULL;
|
struct string_list *str_list = NULL;
|
||||||
const char *menu_label = NULL;
|
const char *menu_label = NULL;
|
||||||
menu_file_list_cbs_t *cbs = NULL;
|
menu_file_list_cbs_t *cbs = NULL;
|
||||||
file_list_t *list = (file_list_t*)data;
|
file_list_t *list = (file_list_t*)data;
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
uint32_t label_hash = 0, menu_label_hash = 0;
|
int ret = 0;
|
||||||
|
uint32_t label_hash = 0;
|
||||||
|
uint32_t menu_label_hash = 0;
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user