Initialize parport pin report buffer

This commit is contained in:
Mike Robinson 2014-10-10 00:12:44 +01:00
parent 8a9593cd3a
commit 68dc27eea5

View File

@ -224,6 +224,8 @@ static bool parport_joypad_init(void)
char buf[NUM_BUTTONS * 3 + 1];
char pin[3 + 1];
memset(buf, 0, NUM_BUTTONS * 3 + 1);
for (i = 0; i < MAX_PLAYERS; i++)
{
struct parport_joypad *pad = &g_pads[i];