mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 844454 - don't try to get a Unicode decoder for an empty charset name. r=hsivonen
This commit is contained in:
parent
08ef823f28
commit
3c10c07d3e
@ -1025,7 +1025,8 @@ nsScriptLoader::ConvertToUTF16(nsIChannel* aChannel, const uint8_t* aData,
|
||||
|
||||
if (!unicodeDecoder &&
|
||||
aChannel &&
|
||||
NS_SUCCEEDED(aChannel->GetContentCharset(charset))) {
|
||||
NS_SUCCEEDED(aChannel->GetContentCharset(charset)) &&
|
||||
!charset.IsEmpty()) {
|
||||
charsetConv->GetUnicodeDecoder(charset.get(),
|
||||
getter_AddRefs(unicodeDecoder));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user