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:
waterson%netscape.com
2000-06-08 23:07:15 +00:00
parent 4caba5abc1
commit 9d914a6568
3 changed files with 3 additions and 3 deletions

View File

@@ -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)
{