citra-emu
/
citra-canary
Archived
1
0
Fork 0

configure_system: Default initialize member variables

These should be initialized to deterministic values so it's easier to
catch improper behavior, as it'll always be reproducable, instead of
performing uninitialized reads.
This commit is contained in:
Lioncash 2018-10-25 16:52:21 -04:00 committed by fearlessTobi
parent 470cc66049
commit a74d97b15f
1 changed files with 5 additions and 4 deletions

View File

@ -38,13 +38,14 @@ private:
void RefreshConsoleID();
std::unique_ptr<Ui::ConfigureSystem> ui;
bool enabled;
bool enabled = false;
std::shared_ptr<Service::CFG::Module> cfg;
std::u16string username;
int birthmonth, birthday;
int language_index;
int sound_index;
int birthmonth = 0;
int birthday = 0;
int language_index = 0;
int sound_index = 0;
u8 country_code;
u16 play_coin;
};