(input_driver.c) Prevent implicit memsets

This commit is contained in:
twinaphex 2016-10-16 01:20:50 +02:00
parent e97fb7d94a
commit b2dcd44c3a

View File

@ -259,7 +259,10 @@ float input_sensor_get_input(unsigned port, unsigned id)
static retro_input_t input_driver_keys_pressed(void)
{
unsigned key;
retro_input_t ret = {0};
retro_input_t ret;
ret.type = 0;
ret.state = 0;
for (key = 0; key < RARCH_BIND_LIST_END; key++)
{
@ -592,10 +595,13 @@ static bool check_input_driver_block_hotkey(bool enable_hotkey)
retro_input_t input_keys_pressed(void)
{
unsigned i, key;
retro_input_t ret;
const struct retro_keybind *binds[MAX_USERS];
retro_input_t ret = {0};
settings_t *settings = config_get_ptr();
ret.type = 0;
ret.state = 0;
for (i = 0; i < MAX_USERS; i++)
binds[i] = settings->input.binds[i];