Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-11-25 10:08:29


Author: bemandawes
Date: 2007-11-25 10:08:28 EST (Sun, 25 Nov 2007)
New Revision: 41357
URL: http://svn.boost.org/trac/boost/changeset/41357

Log:
clear # 1230, mbstate uninitialized
Text files modified:
   trunk/libs/filesystem/src/path.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/filesystem/src/path.cpp
==============================================================================
--- trunk/libs/filesystem/src/path.cpp (original)
+++ trunk/libs/filesystem/src/path.cpp 2007-11-25 10:08:28 EST (Sun, 25 Nov 2007)
@@ -118,7 +118,7 @@
       locked = true;
       std::size_t work_size( converter()->max_length() * (src.size()+1) );
       boost::scoped_array<char> work( new char[ work_size ] );
- std::mbstate_t state;
+ std::mbstate_t state = std::mbstate_t(); // perhaps unneeded, but cuts bug reports
       const internal_string_type::value_type * from_next;
       external_string_type::value_type * to_next;
       if ( converter()->out(
@@ -137,7 +137,7 @@
       locked = true;
       std::size_t work_size( src.size()+1 );
       boost::scoped_array<wchar_t> work( new wchar_t[ work_size ] );
- std::mbstate_t state;
+ std::mbstate_t state = std::mbstate_t(); // perhaps unneeded, but cuts bug reports
       const external_string_type::value_type * from_next;
       internal_string_type::value_type * to_next;
       if ( converter()->in(


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