]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected VC warning about possibly uninitialized variable in the last change
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 Jan 2007 20:37:12 +0000 (20:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 Jan 2007 20:37:12 +0000 (20:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/textfile.cpp

index 2b7af13e1dc068c6dcd6e5cd1e176b0f842ac8c4..ef27836e890285a6a51871130e301263e37ff7ee 100644 (file)
@@ -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;