mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Prevent crashes
This commit is contained in:
parent
2074d25441
commit
8cbb4e13ee
@ -3893,8 +3893,12 @@ static bool menu_displaylist_push(menu_displaylist_ctx_entry_t *entry)
|
||||
info.menu_list = entry->stack;
|
||||
info.type = type;
|
||||
info.enum_idx = enum_idx;
|
||||
strlcpy(info.path, path, sizeof(info.path));
|
||||
strlcpy(info.label, label, sizeof(info.label));
|
||||
|
||||
if (!string_is_empty(path))
|
||||
strlcpy(info.path, path, sizeof(info.path));
|
||||
|
||||
if (!string_is_empty(label))
|
||||
strlcpy(info.label, label, sizeof(info.label));
|
||||
|
||||
if (!info.list)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user