Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69476 - trunk/boost/spirit/home/classic/iterator/impl
From: hartmut.kaiser_at_[hidden]
Date: 2011-03-02 07:29:31


Author: hkaiser
Date: 2011-03-02 07:29:17 EST (Wed, 02 Mar 2011)
New Revision: 69476
URL: http://svn.boost.org/trac/boost/changeset/69476

Log:
Fixed #5246: mmap_file_iterator Fails to Initialize Correctly
Text files modified:
   trunk/boost/spirit/home/classic/iterator/impl/file_iterator.ipp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/classic/iterator/impl/file_iterator.ipp
==============================================================================
--- trunk/boost/spirit/home/classic/iterator/impl/file_iterator.ipp (original)
+++ trunk/boost/spirit/home/classic/iterator/impl/file_iterator.ipp 2011-03-02 07:29:17 EST (Wed, 02 Mar 2011)
@@ -177,9 +177,11 @@
     typedef CharT value_type;
 
     mmap_file_iterator()
+ : m_filesize(0), m_curChar(0)
     {}
 
     explicit mmap_file_iterator(std::string fileName)
+ : m_filesize(0), m_curChar(0)
     {
         HANDLE hFile = ::CreateFileA(
             fileName.c_str(),
@@ -334,9 +336,11 @@
     typedef CharT value_type;
 
     mmap_file_iterator()
+ : m_curChar(0)
     {}
 
     explicit mmap_file_iterator(std::string file_name)
+ : m_curChar(0)
     {
         // open the file
        int fd = open(file_name.c_str(),


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk