You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2005/11/04 17:53:43 UTC
svn commit: r330842 - /incubator/stdcxx/trunk/include/loc/_money_put.cc
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 <se...@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 ());