From 9d914a6568c82c2a8b23bd8db2ff54eeddade090 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 8 Jun 2000 23:07:15 +0000 Subject: [PATCH] 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 --- mozilla/string/obsolete/nsString.cpp | 2 +- mozilla/xpcom/ds/nsString.cpp | 2 +- mozilla/xpcom/string/obsolete/nsString.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) {