Prevent null pointer dereference

This commit is contained in:
twinaphex 2017-10-04 00:16:38 +02:00
parent 865d395f26
commit 3b8559dafc

View File

@ -4283,7 +4283,8 @@ bool menu_displaylist_process(menu_displaylist_info_t *info)
if (info->need_push) if (info->need_push)
{ {
info->label_hash = msg_hash_calculate(info->label); if (!string_is_empty(info->label))
info->label_hash = msg_hash_calculate(info->label);
menu_driver_populate_entries(info); menu_driver_populate_entries(info);
ui_companion_driver_notify_list_loaded(info->list, info->menu_list); ui_companion_driver_notify_list_loaded(info->list, info->menu_list);
} }