From a2bd1fbb8b875db919e8c78c6589d2e5234d313c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 26 Nov 2000 14:18:27 +0000 Subject: [PATCH] fix for uninit vars git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/stream.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.45.2