From 1c7da12ddb5dd49d7ee3d10fed780051ecbce2ec Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 16 Aug 2015 19:32:50 -0700 Subject: [PATCH] GBA SIO: Fix GBASIOInit unintialized access --- src/gba/sio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/sio.c b/src/gba/sio.c index 2e4251c9c..37d6f6d2a 100644 --- a/src/gba/sio.c +++ b/src/gba/sio.c @@ -51,6 +51,7 @@ void GBASIOInit(struct GBASIO* sio) { sio->drivers.normal = 0; sio->drivers.multiplayer = 0; sio->drivers.joybus = 0; + sio->activeDriver = 0; GBASIOReset(sio); } @@ -71,7 +72,6 @@ void GBASIOReset(struct GBASIO* sio) { sio->rcnt = RCNT_INITIAL; sio->siocnt = 0; sio->mode = -1; - sio->activeDriver = 0; _switchMode(sio); }