mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
(PS3) Fix warnings in history.c - potential uninitialized variables
This commit is contained in:
parent
98467a744e
commit
31f7c4e3fa
@ -239,6 +239,10 @@ const char* rom_history_get_path(void *data, unsigned index)
|
|||||||
if (!hist)
|
if (!hist)
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
|
path = NULL;
|
||||||
|
core_path = NULL;
|
||||||
|
core_name = NULL;
|
||||||
|
|
||||||
rom_history_get_index(hist, index, &path, &core_path, &core_name);
|
rom_history_get_index(hist, index, &path, &core_path, &core_name);
|
||||||
|
|
||||||
if (path)
|
if (path)
|
||||||
@ -253,6 +257,10 @@ const char *rom_history_get_core_path(void *data, unsigned index)
|
|||||||
if (!hist)
|
if (!hist)
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
|
path = NULL;
|
||||||
|
core_path = NULL;
|
||||||
|
core_name = NULL;
|
||||||
|
|
||||||
rom_history_get_index(hist, index, &path, &core_path, &core_name);
|
rom_history_get_index(hist, index, &path, &core_path, &core_name);
|
||||||
|
|
||||||
if (core_path)
|
if (core_path)
|
||||||
@ -268,6 +276,10 @@ const char *rom_history_get_core_name(void *data, unsigned index)
|
|||||||
if (!hist)
|
if (!hist)
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
|
path = NULL;
|
||||||
|
core_path = NULL;
|
||||||
|
core_name = NULL;
|
||||||
|
|
||||||
rom_history_get_index(hist, index, &path, &core_path, &core_name);
|
rom_history_get_index(hist, index, &path, &core_path, &core_name);
|
||||||
|
|
||||||
if (core_name)
|
if (core_name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user