Core: Fix uninitialized variable

This commit is contained in:
Vicki Pfau 2019-10-19 23:37:31 -07:00
parent 0edf26c90f
commit b137e459e0
1 changed files with 1 additions and 1 deletions

View File

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