mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +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.menu_list = entry->stack;
|
||||||
info.type = type;
|
info.type = type;
|
||||||
info.enum_idx = enum_idx;
|
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)
|
if (!info.list)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user