stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r656352 - /stdcxx/branches/4.2.x/util/charmap.cpp
Date Wed, 14 May 2008 18:33:18 GMT
Author: sebor
Date: Wed May 14 11:33:18 2008
New Revision: 656352

URL: http://svn.apache.org/viewvc?rev=656352&view=rev
Log:
2008-05-14  Martin Sebor  <sebor@roguewave.com>

	* util/charmap.cpp (utf8_decode): Explicitly initialized a local
	variable to silence gcc warning: variable may be used uninitialized.

Modified:
    stdcxx/branches/4.2.x/util/charmap.cpp

Modified: stdcxx/branches/4.2.x/util/charmap.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/util/charmap.cpp?rev=656352&r1=656351&r2=656352&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/util/charmap.cpp (original)
+++ stdcxx/branches/4.2.x/util/charmap.cpp Wed May 14 11:33:18 2008
@@ -179,7 +179,7 @@
     const unsigned char* const ch_end =
         _RWSTD_REINTERPRET_CAST (const unsigned char*, to);
 
-    size_t num_bytes;
+    size_t num_bytes = 0;
 
     wchar_t ret = 0;
 



Mime
View raw message