diff --git a/mailnews/base/util/nsMsgI18N.cpp b/mailnews/base/util/nsMsgI18N.cpp index fb765d936c6..a123a8a8873 100644 --- a/mailnews/base/util/nsMsgI18N.cpp +++ b/mailnews/base/util/nsMsgI18N.cpp @@ -109,6 +109,8 @@ nsresult nsMsgI18NConvertFromUnicode(const nsCString& aCharset, char localbuf[512]; PRInt32 consumedLen = 0; + outString.Assign(""); + // convert while (consumedLen < originalUnicharLength) { srcLength = originalUnicharLength - consumedLen; @@ -176,6 +178,8 @@ nsresult nsMsgI18NConvertToUnicode(const nsCString& aCharset, PRUnichar localbuf[512]; PRInt32 consumedLen = 0; + outString.AssignWithConversion(""); + // convert while (consumedLen < originalLength) { srcLength = originalLength - consumedLen;