mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Apply bryner's review comment, bug 256316
This commit is contained in:
parent
9f91a230dc
commit
c51b32c8ad
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user