mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
Prevent crash
This commit is contained in:
parent
db02a0c52a
commit
fd5836d4e7
@ -86,7 +86,9 @@ int generic_menu_iterate(void *data, void *userdata, enum menu_action action)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
menu->menu_state.msg[0] = '\0';
|
menu->menu_state.msg[0] = '\0';
|
||||||
hash = msg_hash_calculate(label);
|
|
||||||
|
if (!string_is_empty(label))
|
||||||
|
hash = msg_hash_calculate(label);
|
||||||
iterate_type = action_iterate_type(hash);
|
iterate_type = action_iterate_type(hash);
|
||||||
|
|
||||||
menu_driver_set_binding_state(iterate_type == ITERATE_TYPE_BIND);
|
menu_driver_set_binding_state(iterate_type == ITERATE_TYPE_BIND);
|
||||||
|
Loading…
Reference in New Issue
Block a user