From 0d508407490ba83a734ad42a38931fbb7fc8f9b3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 25 Jun 2015 18:25:20 +0200 Subject: [PATCH] (joypad_connection.c) Cleanups --- input/connect/joypad_connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/connect/joypad_connection.c b/input/connect/joypad_connection.c index 3d80ecbe76..720068a75b 100644 --- a/input/connect/joypad_connection.c +++ b/input/connect/joypad_connection.c @@ -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;