mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 428733 - add better error handling in AddVisit (r=mano, a=schrep)
This commit is contained in:
parent
25650cf0ce
commit
29ba919d8e
@ -2460,8 +2460,9 @@ nsNavHistory::AddVisit(nsIURI* aURI, PRTime aTime, nsIURI* aReferringURI,
|
||||
mozStorageStatementScoper scoper(mDBGetPageVisitStats);
|
||||
rv = BindStatementURI(mDBGetPageVisitStats, 0, aURI);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
PRBool alreadyVisited = PR_TRUE;
|
||||
PRBool alreadyVisited = PR_FALSE;
|
||||
rv = mDBGetPageVisitStats->ExecuteStep(&alreadyVisited);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
PRInt64 pageID = 0;
|
||||
PRBool hidden; // XXX fix me, this should not be a PRBool, as we later do BindInt32Parameter()
|
||||
|
Loading…
Reference in New Issue
Block a user