Prevent crash

This commit is contained in:
twinaphex 2017-02-24 04:53:54 +01:00
parent db02a0c52a
commit fd5836d4e7

View File

@ -86,7 +86,9 @@ int generic_menu_iterate(void *data, void *userdata, enum menu_action action)
return 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);
menu_driver_set_binding_state(iterate_type == ITERATE_TYPE_BIND);