Changed GetCharPtrCharacterSet to use the global default when a folder charset is empty,

bug 77152, r=ducarroz, yokoyama, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@93309 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nhotta%netscape.com 2001-04-27 21:36:11 +00:00
parent 01017f8dbf
commit 5ad6ca4968

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