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:
nhotta%netscape.com 2001-04-27 21:36:11 +00:00
parent 95a461167b
commit 07a90c082d

View File

@ -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();
}