mirror of https://github.com/mgba-emu/mgba.git
Fix some valgrind errors
This commit is contained in:
parent
2cd4bb3cff
commit
4c1014685f
|
@ -40,6 +40,8 @@ static void _switchMode(struct GBASIO* sio) {
|
|||
void GBASIOInit(struct GBASIO* sio) {
|
||||
sio->rcnt = RCNT_INITIAL;
|
||||
sio->siocnt = 0;
|
||||
sio->mode = -1;
|
||||
sio->activeDriver = 0;
|
||||
_switchMode(sio);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue