blow away corrupt history dbs r=naving sr=sspitzer 102319

This commit is contained in:
bienvenu%netscape.com 2001-10-03 03:47:54 +00:00
parent 1eb9604025
commit 412a6398cd

View File

@ -246,7 +246,14 @@ nsresult nsAbAddressCollecter::OpenHistoryAB(nsIAddrDatabase **aDatabase)
do_GetService(kAddressBookDBCID, &rv);
if (NS_SUCCEEDED(rv) && addrDBFactory)
{
rv = addrDBFactory->Open(dbPath, PR_TRUE, aDatabase, PR_TRUE);
if (!NS_SUCCEEDED(rv))
{
// blow away corrupt db's
dbPath->Delete(PR_FALSE);
}
}
delete dbPath;
}
nsCOMPtr<nsIRDFService> rdfService(do_GetService(kRDFServiceCID, &rv));