Fix bonehead error warren found: don't re-initialize utf8len; we'll need it to set the string's length!
git-svn-id: svn://10.0.0.236/trunk@71816 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1885,7 +1885,7 @@ NS_ConvertUCS2toUTF8::Init( const PRUnichar* aString, PRUint32 aLength )
|
||||
char* out = mStr;
|
||||
PRUint32 ucs4=0;
|
||||
|
||||
for (p = aString, utf8len=0, count = aLength; 0 != count && 0 != (*p); count--, p++)
|
||||
for (p = aString, count = aLength; 0 != count && 0 != (*p); count--, p++)
|
||||
{
|
||||
if (0 == ucs4)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user