Initialized the output string before appending the results,

bug 200037, r=ftang, sr=darin.


git-svn-id: svn://10.0.0.236/trunk@140598 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nhotta%netscape.com
2003-04-02 21:33:23 +00:00
parent cc0072470d
commit e286ed36eb

View File

@@ -128,6 +128,7 @@ NS_IMETHODIMP nsIDNService::ConvertUTF8toACE(const nsACString & input, nsACStrin
nsAString::const_iterator start, end;
ustr.BeginReading(start);
ustr.EndReading(end);
ace.Truncate();
// encode nodes if non ASCII
while (start != end) {