mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-30 16:14:11 +00:00
Fix potential uninitialized variable warning in cheats.c
This commit is contained in:
parent
9daecea53e
commit
c838c49e23
2
cheats.c
2
cheats.c
@ -68,7 +68,7 @@ cheat_manager_t *cheat_manager_load(const char *path)
|
|||||||
char code_key[256];
|
char code_key[256];
|
||||||
char enable_key[256];
|
char enable_key[256];
|
||||||
char *tmp = NULL;
|
char *tmp = NULL;
|
||||||
bool tmp_bool;
|
bool tmp_bool = false;
|
||||||
|
|
||||||
snprintf(key, sizeof(key), "cheat%u", i);
|
snprintf(key, sizeof(key), "cheat%u", i);
|
||||||
snprintf(desc_key, sizeof(desc_key), "cheat%u_desc", i);
|
snprintf(desc_key, sizeof(desc_key), "cheat%u_desc", i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user