diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-14 07:53:20 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-14 07:53:20 +0400 |
commit | 20afe4babbd3bc48dbc89a7d21c376cce5c19cab (patch) | |
tree | 4c4fad9945867a21bf0294f82ead9b056f809808 /mert/FileStream.cpp | |
parent | 625fe118e0a5ddc4f49f8b368b0cfc3947cbe5c5 (diff) |
Fix uninitialized private members when constructors are called.
Diffstat (limited to 'mert/FileStream.cpp')
-rw-r--r-- | mert/FileStream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mert/FileStream.cpp b/mert/FileStream.cpp index b1969616e..11fd58e26 100644 --- a/mert/FileStream.cpp +++ b/mert/FileStream.cpp @@ -13,7 +13,7 @@ bool IsGzipFile(const std::string &filename) { } // namespace inputfilestream::inputfilestream(const std::string &filePath) - : std::istream(0), m_streambuf(0) + : std::istream(0), m_streambuf(0), is_good(false) { // check if file is readable std::filebuf* fb = new std::filebuf(); @@ -40,7 +40,7 @@ void inputfilestream::close() } outputfilestream::outputfilestream(const std::string &filePath) - : std::ostream(0), m_streambuf(0) + : std::ostream(0), m_streambuf(0), is_good(false) { // check if file is readable std::filebuf* fb = new std::filebuf(); |