diff --git a/src/common/textfile.cpp b/src/common/textfile.cpp index 2b7af13e1d..ef27836e89 100644 --- a/src/common/textfile.cpp +++ b/src/common/textfile.cpp @@ -98,7 +98,7 @@ bool wxTextFile::OnRead(const wxMBConv& conv) // read and so the conversion would fail) and, as the file contents is kept // in memory by wxTextFile anyhow, it shouldn't be a big problem to read // the file entirely - size_t bufSize, + size_t bufSize = 0, bufPos = 0; char block[1024]; wxCharBuffer buf;