diff --git a/mozilla/string/obsolete/nsString.cpp b/mozilla/string/obsolete/nsString.cpp index 07e82de4e98..6a0191c1fd8 100644 --- a/mozilla/string/obsolete/nsString.cpp +++ b/mozilla/string/obsolete/nsString.cpp @@ -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) { diff --git a/mozilla/xpcom/ds/nsString.cpp b/mozilla/xpcom/ds/nsString.cpp index 07e82de4e98..6a0191c1fd8 100644 --- a/mozilla/xpcom/ds/nsString.cpp +++ b/mozilla/xpcom/ds/nsString.cpp @@ -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) { diff --git a/mozilla/xpcom/string/obsolete/nsString.cpp b/mozilla/xpcom/string/obsolete/nsString.cpp index 07e82de4e98..6a0191c1fd8 100644 --- a/mozilla/xpcom/string/obsolete/nsString.cpp +++ b/mozilla/xpcom/string/obsolete/nsString.cpp @@ -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) {