Apply bryner's review comment, bug 256316
git-svn-id: svn://10.0.0.236/trunk@161215 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -242,7 +242,7 @@ NS_IMETHODIMP nsIDNService::IsACE(const nsACString & input, PRBool *_retval)
|
||||
NS_IMETHODIMP nsIDNService::Normalize(const nsACString & input, nsACString & output)
|
||||
{
|
||||
// protect against bogus input
|
||||
NS_ENSURE_ARG(IsUTF8(input));
|
||||
NS_ENSURE_TRUE(IsUTF8(input), NS_ERROR_UNEXPECTED);
|
||||
|
||||
nsAutoString outUTF16;
|
||||
nsresult rv = stringPrep(NS_ConvertUTF8toUTF16(input), outUTF16);
|
||||
|
||||
Reference in New Issue
Block a user