Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70780 - trunk/boost/date_time
From: marshall_at_[hidden]
Date: 2011-03-31 09:32:49


Author: marshall
Date: 2011-03-31 09:32:46 EDT (Thu, 31 Mar 2011)
New Revision: 70780
URL: http://svn.boost.org/trac/boost/changeset/70780

Log:
Applied modified patch - Refs #4798
Text files modified:
   trunk/boost/date_time/strings_from_facet.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/date_time/strings_from_facet.hpp
==============================================================================
--- trunk/boost/date_time/strings_from_facet.hpp (original)
+++ trunk/boost/date_time/strings_from_facet.hpp 2011-03-31 09:32:46 EDT (Thu, 31 Mar 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