Some C89_BUILD buildfixes

This commit is contained in:
twinaphex 2015-11-25 03:38:57 +01:00
parent 36587d99c2
commit 91a9a53a84
2 changed files with 8 additions and 4 deletions

View File

@ -290,6 +290,8 @@ static int playlist_association_left(unsigned type, const char *label,
{
unsigned i;
int next, found, current = 0;
struct string_list *stnames = NULL;
struct string_list *stcores = NULL;
char core_path[PATH_MAX_LENGTH] = {0};
char new_playlist_cores[PATH_MAX_LENGTH] = {0};
global_t *global = global_get_ptr();
@ -299,8 +301,8 @@ static int playlist_association_left(unsigned type, const char *label,
if (!list)
return -1;
struct string_list *stnames = string_split(settings->playlist_names, ";");
struct string_list *stcores = string_split(settings->playlist_cores, ";");
stnames = string_split(settings->playlist_names, ";");
stcores = string_split(settings->playlist_cores, ";");
if (!menu_playlist_find_associated_core(path, core_path, sizeof(core_path)))
strlcpy(core_path, "DETECT", sizeof(core_path));

View File

@ -314,6 +314,8 @@ static int playlist_association_right(unsigned type, const char *label,
{
size_t i, next, found, current = 0;
char core_path[PATH_MAX_LENGTH] = {0};
struct string_list *stnames = NULL;
struct string_list *stcores = NULL;
char new_playlist_cores[PATH_MAX_LENGTH] = {0};
global_t *global = global_get_ptr();
settings_t *settings = config_get_ptr();
@ -322,8 +324,8 @@ static int playlist_association_right(unsigned type, const char *label,
if (!list)
return -1;
struct string_list *stnames = string_split(settings->playlist_names, ";");
struct string_list *stcores = string_split(settings->playlist_cores, ";");
stnames = string_split(settings->playlist_names, ";");
stcores = string_split(settings->playlist_cores, ";");
if (!menu_playlist_find_associated_core(path, core_path, sizeof(core_path)))
strlcpy(core_path, "DETECT", sizeof(core_path));