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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user