From d6c6fe78bbcdb272235332c4158e88edab3572a0 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Tue, 29 Oct 2019 11:17:06 -0700 Subject: [PATCH] Fix read of uninitialized variable in wxFileConfig dtor --- src/common/fileconf.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 1f492580a5..c0e05c057a 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -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);