mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(menu_cbs.c) Buildfix
This commit is contained in:
parent
52d6119584
commit
a47eed7017
@ -74,11 +74,8 @@ void menu_cbs_init(void *data,
|
|||||||
if (str_list && str_list->size > 1)
|
if (str_list && str_list->size > 1)
|
||||||
strlcpy(elem1, str_list->elems[1].data, sizeof(elem1));
|
strlcpy(elem1, str_list->elems[1].data, sizeof(elem1));
|
||||||
|
|
||||||
if (str_list)
|
if (!label || !menu_label)
|
||||||
{
|
goto error;
|
||||||
string_list_free(str_list);
|
|
||||||
str_list = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
label_hash = menu_hash_calculate(label);
|
label_hash = menu_hash_calculate(label);
|
||||||
menu_label_hash = menu_hash_calculate(menu_label);
|
menu_label_hash = menu_hash_calculate(menu_label);
|
||||||
@ -152,4 +149,8 @@ void menu_cbs_init(void *data,
|
|||||||
ret = menu_driver_bind_init(cbs, path, label, type, idx, elem0, elem1, label_hash, menu_label_hash);
|
ret = menu_driver_bind_init(cbs, path, label, type, idx, elem0, elem1, label_hash, menu_label_hash);
|
||||||
|
|
||||||
(void)ret;
|
(void)ret;
|
||||||
|
|
||||||
|
error:
|
||||||
|
string_list_free(str_list);
|
||||||
|
str_list = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user