mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-04 10:36:50 +00:00
Cleanups
This commit is contained in:
parent
ddc3c2adcc
commit
63b3f30112
@ -80,7 +80,7 @@ static int action_iterate_help(menu_handle_t *menu,
|
||||
case MENU_HELP_CONTROLS:
|
||||
{
|
||||
unsigned i;
|
||||
char s2[PATH_MAX_LENGTH];
|
||||
char s2[PATH_MAX_LENGTH] = {0};
|
||||
const unsigned binds[] = {
|
||||
RETRO_DEVICE_ID_JOYPAD_UP,
|
||||
RETRO_DEVICE_ID_JOYPAD_DOWN,
|
||||
@ -330,7 +330,7 @@ int generic_menu_iterate(void *data, void *userdata, enum menu_action action)
|
||||
|
||||
if (setting)
|
||||
{
|
||||
char needle[PATH_MAX_LENGTH];
|
||||
char needle[PATH_MAX_LENGTH] = {0};
|
||||
strlcpy(needle, menu_setting_get_name(setting), sizeof(needle));
|
||||
label_hash = menu_hash_calculate(needle);
|
||||
}
|
||||
|
@ -153,7 +153,7 @@ static void print_buf_lines(file_list_t *list, char *buf, int buf_size,
|
||||
}
|
||||
|
||||
static void print_buf_lines_extended(file_list_t *list, char *buf, int buf_size,
|
||||
unsigned type)
|
||||
enum menu_file_type type)
|
||||
{
|
||||
char c;
|
||||
int i, j = 0;
|
||||
@ -242,6 +242,9 @@ static void print_buf_lines_extended(file_list_t *list, char *buf, int buf_size,
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MENU_FILE_NONE:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
j++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user