From 0e9ea0055c88d4b51fc5a04b60ccdb523f841975 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Mon, 21 Jul 2014 05:00:13 +0200 Subject: [PATCH] Add warning to rom_history_init if it early exits --- frontend/menu/history.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/menu/history.c b/frontend/menu/history.c index 123ff2e693..4a5059f765 100644 --- a/frontend/menu/history.c +++ b/frontend/menu/history.c @@ -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)