зеркало из https://github.com/mozilla/gecko-dev.git
Fix bonehead error warren found: don't re-initialize utf8len; we'll need it to set the string's length!
This commit is contained in:
Родитель
0a8ce8f6c1
Коммит
5e705488cb
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче