mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
blow away corrupt history dbs r=naving sr=sspitzer 102319
This commit is contained in:
parent
1eb9604025
commit
412a6398cd
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user