(joypad_connection.c) Cleanups

This commit is contained in:
twinaphex 2015-06-25 18:25:20 +02:00
parent e74d6e27ca
commit 0d50840749

View File

@ -39,7 +39,7 @@ joypad_connection_t *pad_connection_init(unsigned pads)
{
unsigned i;
joypad_connection_t *joyconn = (joypad_connection_t*)
calloc(pads, sizeof(*joyconn));
calloc(pads, sizeof(joypad_connection_t));
if (!joyconn)
return NULL;