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));
|
rom_history_t *hist = (rom_history_t*)calloc(1, sizeof(*hist));
|
||||||
if (!hist)
|
if (!hist)
|
||||||
|
{
|
||||||
|
RARCH_ERR("Cannot initialize content history.\n")
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
hist->entries = (struct rom_history_entry*)calloc(size, sizeof(*hist->entries));
|
hist->entries = (struct rom_history_entry*)calloc(size, sizeof(*hist->entries));
|
||||||
if (!hist->entries)
|
if (!hist->entries)
|
||||||
|
|
Loading…
Reference in New Issue