This commit is contained in:
twinaphex 2016-07-01 10:26:31 +02:00
parent 8408b753af
commit 5953b63b4f
2 changed files with 2 additions and 6 deletions

View File

@ -402,11 +402,9 @@ static int menu_cbs_init_bind_left_compare_label(menu_file_list_cbs_t *cbs,
for (i = 0; i < MAX_USERS; i++) for (i = 0; i < MAX_USERS; i++)
{ {
uint32_t label_setting_hash; uint32_t label_setting_hash;
char label_setting[PATH_MAX_LENGTH]; char label_setting[PATH_MAX_LENGTH] = {0};
label_setting[0] = '\0';
snprintf(label_setting, sizeof(label_setting), "input_player%d_joypad_index", i + 1); snprintf(label_setting, sizeof(label_setting), "input_player%d_joypad_index", i + 1);
label_setting_hash = msg_hash_calculate(label_setting); label_setting_hash = msg_hash_calculate(label_setting);
if (label_hash != label_setting_hash) if (label_hash != label_setting_hash)

View File

@ -522,11 +522,9 @@ static int menu_cbs_init_bind_right_compare_label(menu_file_list_cbs_t *cbs,
for (i = 0; i < MAX_USERS; i++) for (i = 0; i < MAX_USERS; i++)
{ {
uint32_t label_setting_hash; uint32_t label_setting_hash;
char label_setting[PATH_MAX_LENGTH]; char label_setting[PATH_MAX_LENGTH] = {0};
label_setting[0] = '\0';
snprintf(label_setting, sizeof(label_setting), "input_player%d_joypad_index", i + 1); snprintf(label_setting, sizeof(label_setting), "input_player%d_joypad_index", i + 1);
label_setting_hash = msg_hash_calculate(label_setting); label_setting_hash = msg_hash_calculate(label_setting);
if (label_hash != label_setting_hash) if (label_hash != label_setting_hash)