From b438352690e18c57152e35c6cf5a3422b7649d59 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Fri, 12 Nov 2010 10:20:30 -0600 Subject: [PATCH] Initialize all of an array --- src/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events.c b/src/events.c index 38aef7c..324a832 100644 --- a/src/events.c +++ b/src/events.c @@ -520,7 +520,7 @@ static void event_data_read(struct wiimote_t* wm, byte* msg) { * Read the controller status and execute the registered status callback. */ static void event_status(struct wiimote_t* wm, byte* msg) { - int led[4] = {0}; + int led[4] = {0, 0, 0, 0}; int attachment = 0; int ir = 0; int exp_changed = 0;