diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index ab3c4a0f49..6b1f5f5df2 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -479,7 +479,8 @@ wxFileConfig::wxFileConfig(wxInputStream &inStream, const wxMBConv& conv) // notice that we throw away the original EOL kind here, maybe we // should preserve it? - memText.AddLine(wxString(s, e)); + if ( e != s ) + memText.AddLine(wxString(s, e)); if ( *e == '\0' ) break;