Fix read of uninitialized variable in wxFileConfig dtor

This commit is contained in:
Paul Cornett
2019-10-29 11:17:06 -07:00
parent c700f3bdf7
commit d6c6fe78bb

View File

@@ -397,6 +397,9 @@ wxFileConfig::wxFileConfig(const wxString& appName, const wxString& vendorName,
wxFileConfig::wxFileConfig(wxInputStream &inStream, const wxMBConv& conv)
: m_conv(conv.Clone())
{
m_isDirty = false;
m_autosave = true;
// always local_file when this constructor is called (?)
SetStyle(GetStyle() | wxCONFIG_USE_LOCAL_FILE);