From eff07fe61e707a8e16a072371b3df5ed4dd7d7bb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 1 Jul 2016 08:41:54 +0100 Subject: [PATCH] Added initializer --- src/osgPlugins/osga/OSGA_Archive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/osga/OSGA_Archive.cpp b/src/osgPlugins/osga/OSGA_Archive.cpp index e6ec2fcc4..ca430b3b6 100644 --- a/src/osgPlugins/osga/OSGA_Archive.cpp +++ b/src/osgPlugins/osga/OSGA_Archive.cpp @@ -608,7 +608,7 @@ class proxy_streambuf : public std::streambuf public: proxy_streambuf(std::streambuf* streambuf, std::streamoff numChars): - _streambuf(streambuf),_curPos(0),_numChars(numChars) + _streambuf(streambuf),_oneChar(0), _curPos(0),_numChars(numChars) { _startPos = ARCHIVE_POS(_streambuf->pubseekoff(0, std::ios_base::cur, std::ios_base::in)); setg(&_oneChar, (&_oneChar)+1, (&_oneChar)+1); @@ -624,7 +624,7 @@ protected: char_type _oneChar; // Single character buffer std::streamoff _curPos, _numChars; OSGA_Archive::pos_type _startPos; - + // Set internal position pointer to relative position. Virtual function called by the public // member function pubseekoff to alter the stream position.