Prevent uninitialied variable

This commit is contained in:
Twinaphex 2016-10-27 21:46:54 +02:00
parent 2b543cdaf0
commit 7e5ee4f86c

View File

@ -268,7 +268,7 @@ static int16_t cocoa_input_state(void *data,
const struct retro_keybind **binds, unsigned port,
unsigned device, unsigned idx, unsigned id)
{
int16_t ret;
int16_t ret = 0;
cocoa_input_data_t *apple = (cocoa_input_data_t*)data;
if (!apple || !apple->joypad)