Initialize all of an array

This commit is contained in:
Ryan Pavlik
2010-11-12 10:20:30 -06:00
parent 7baa20db2a
commit b438352690

View File

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