Merge pull request #1113 from mprobinson/parport-bug

Initialize parport pin report buffer
This commit is contained in:
Twinaphex 2014-10-10 01:14:46 +02:00
commit 72f26dfb49

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];