mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Changed GetCharPtrCharacterSet to use the global default when a folder charset is empty,
bug 77152, r=ducarroz, yokoyama, sr=bienvenu.
This commit is contained in:
parent
95a461167b
commit
07a90c082d
@ -675,7 +675,7 @@ nsDBFolderInfo::GetCharPtrCharacterSet(char **result)
|
||||
{
|
||||
nsresult rv = GetCharPtrProperty(kCharacterSetColumnName, result);
|
||||
|
||||
if (NS_SUCCEEDED(rv) && *result == nsnull)
|
||||
if (NS_SUCCEEDED(rv) && (*result == nsnull || **result == '\0'))
|
||||
{
|
||||
*result = gDefaultCharacterSet.ToNewCString();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user