all repos — mgba @ b137e459e0cb6d467721874c0aa8ffd7e7aef288

mGBA Game Boy Advance Emulator

Core: Fix uninitialized variable
Vicki Pfau vi@endrift.com
Sat, 19 Oct 2019 23:37:31 -0700
commit

b137e459e0cb6d467721874c0aa8ffd7e7aef288

parent

0edf26c90f9d5334057e279f4834f38a0a2a16c5

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/core/cheats.csrc/core/cheats.c

@@ -334,7 +334,7 @@ bool mCheatParseEZFChtFile(struct mCheatDevice* device, struct VFile* vf) {

char cheat[MAX_LINE_LENGTH]; char cheatName[MAX_LINE_LENGTH]; char miniline[32]; - size_t cheatNameLength; + size_t cheatNameLength = 0; struct mCheatSet* set = NULL; cheatName[MAX_LINE_LENGTH - 1] = '\0';