diff --git a/frontend/menu/history.c b/frontend/menu/history.c index 552cc4e6d8..f28352072b 100644 --- a/frontend/menu/history.c +++ b/frontend/menu/history.c @@ -239,6 +239,10 @@ const char* rom_history_get_path(void *data, unsigned index) if (!hist) return ""; + path = NULL; + core_path = NULL; + core_name = NULL; + rom_history_get_index(hist, index, &path, &core_path, &core_name); if (path) @@ -253,6 +257,10 @@ const char *rom_history_get_core_path(void *data, unsigned index) if (!hist) return ""; + path = NULL; + core_path = NULL; + core_name = NULL; + rom_history_get_index(hist, index, &path, &core_path, &core_name); if (core_path) @@ -268,6 +276,10 @@ const char *rom_history_get_core_name(void *data, unsigned index) if (!hist) return ""; + path = NULL; + core_path = NULL; + core_name = NULL; + rom_history_get_index(hist, index, &path, &core_path, &core_name); if (core_name)