(PS3) Fix warnings in history.c - potential uninitialized variables

This commit is contained in:
twinaphex 2014-06-01 03:20:53 +02:00
parent 98467a744e
commit 31f7c4e3fa

View File

@ -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)