mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-12 20:58:18 +00:00
Add warning to rom_history_init if it early exits
This commit is contained in:
parent
65f78b6729
commit
0e9ea0055c
@ -212,7 +212,10 @@ rom_history_t *rom_history_init(const char *path, size_t size)
|
||||
{
|
||||
rom_history_t *hist = (rom_history_t*)calloc(1, sizeof(*hist));
|
||||
if (!hist)
|
||||
{
|
||||
RARCH_ERR("Cannot initialize content history.\n")
|
||||
return NULL;
|
||||
}
|
||||
|
||||
hist->entries = (struct rom_history_entry*)calloc(size, sizeof(*hist->entries));
|
||||
if (!hist->entries)
|
||||
|
Loading…
x
Reference in New Issue
Block a user