From 5d9ab0982b43eadc747aa316b0d114beeff0f37a Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 20 Mar 2006 06:09:00 +0000 Subject: [PATCH] Fix warnings about possibly being used uninitialized. --- stepmania/src/RageUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageUtil.cpp b/stepmania/src/RageUtil.cpp index 5c30fd7d0a..4906a31d97 100644 --- a/stepmania/src/RageUtil.cpp +++ b/stepmania/src/RageUtil.cpp @@ -1361,7 +1361,7 @@ void utf8_remove_bom( RString &sLine ) static int UnicodeDoUpper( char *p, size_t iLen, const unsigned char pMapping[256] ) { - wchar_t wc; + wchar_t wc = L'\0'; unsigned iStart = 0; if( !utf8_to_wchar(p, iLen, iStart, wc) ) return 1; @@ -1463,7 +1463,7 @@ wstring RStringToWstring( const RString &s ) continue; } - wchar_t ch; + wchar_t ch = L'\0'; if( !utf8_to_wchar( s.data(), s.size(), start, ch ) ) ch = INVALID_CHAR; ret += ch;