stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r330842 - /incubator/stdcxx/trunk/include/loc/_money_put.cc
Date Fri, 04 Nov 2005 16:53:43 GMT
Author: sebor
Date: Fri Nov  4 08:53:40 2005
New Revision: 330842

URL: http://svn.apache.org/viewcvs?rev=330842&view=rev
Log:
2005-11-04  Martin Sebor  <sebor@roguewave.com>

	* _money_put.cc (_C_put): Eliminated gcc -O warning: variable
	might be used uninitialized in this function.

Modified:
    incubator/stdcxx/trunk/include/loc/_money_put.cc

Modified: incubator/stdcxx/trunk/include/loc/_money_put.cc
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/include/loc/_money_put.cc?rev=330842&r1=330841&r2=330842&view=diff
==============================================================================
--- incubator/stdcxx/trunk/include/loc/_money_put.cc (original)
+++ incubator/stdcxx/trunk/include/loc/_money_put.cc Fri Nov  4 08:53:40 2005
@@ -63,10 +63,14 @@
     const _Punct0* __pun0;
     const _Punct1* __pun1;
 
-    if (__intl)
+    if (__intl) {
+        __pun0 = 0;
         __pun1 = &_V3_USE_FACET (_Punct1, __flags.getloc ());
-    else
+    }
+    else {
         __pun0 = &_V3_USE_FACET (_Punct0, __flags.getloc ());
+        __pun1 = 0;
+    }
 
     const ctype<_CharT> &__ctp =
         _V3_USE_FACET (ctype<_CharT>,__flags.getloc ());



Mime
View raw message