From: Vadim Zeitlin Date: Sun, 26 Nov 2000 14:18:27 +0000 (+0000) Subject: fix for uninit vars X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a2bd1fbb8b875db919e8c78c6589d2e5234d313c?hp=6e50d0eb2f6f9f7bbdd3ab2d15c5b36d585546c4 fix for uninit vars git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/stream.cpp b/src/common/stream.cpp index 0a6991a42f..c0e0594851 100644 --- a/src/common/stream.cpp +++ b/src/common/stream.cpp @@ -81,22 +81,24 @@ void wxStreamBuffer::Init() wxStreamBuffer::wxStreamBuffer(wxStreamBase& stream, BufMode mode) { + Init(); + m_stream = &stream; m_mode = mode; m_flushable = TRUE; m_destroystream = FALSE; - m_destroybuf = FALSE; } wxStreamBuffer::wxStreamBuffer(BufMode mode) { + Init(); + m_stream = new wxStreamBase; m_mode = mode; m_flushable = FALSE; m_destroystream = TRUE; - m_destroybuf = FALSE; } wxStreamBuffer::wxStreamBuffer(const wxStreamBuffer& buffer)