Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70983 - branches/release/boost/date_time
From: marshall_at_[hidden]
Date: 2011-04-04 19:39:01


Author: marshall
Date: 2011-04-04 19:39:00 EDT (Mon, 04 Apr 2011)
New Revision: 70983
URL: http://svn.boost.org/trac/boost/changeset/70983

Log:
Merge date/time fixes to release. Fixes #4798
Properties modified:
   branches/release/boost/date_time/strings_from_facet.hpp (contents, props changed)
Text files modified:
   branches/release/boost/date_time/strings_from_facet.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: branches/release/boost/date_time/strings_from_facet.hpp
==============================================================================
--- branches/release/boost/date_time/strings_from_facet.hpp (original)
+++ branches/release/boost/date_time/strings_from_facet.hpp 2011-04-04 19:39:00 EDT (Mon, 04 Apr 2011)
@@ -50,8 +50,8 @@
     //grab the needed strings by using the locale to
     //output each month
     const charT* p_outfmt = outfmt.c_str(), *p_outfmt_end = p_outfmt + outfmt.size();
+ tm tm_value = {};
     for (int m=0; m < 12; m++) {
- tm tm_value;
       tm_value.tm_mon = m;
       stringstream_type ss;
       ostream_iter_type oitr(ss);
@@ -103,8 +103,8 @@
     //grab the needed strings by using the locale to
     //output each month / weekday
     const charT* p_outfmt = outfmt.c_str(), *p_outfmt_end = p_outfmt + outfmt.size();
+ tm tm_value = {};
     for (int i=0; i < 7; i++) {
- tm tm_value;
       tm_value.tm_wday = i;
       stringstream_type ss;
       ostream_iter_type oitr(ss);


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