Fix crash when attempting to show last visit date of a folder (result not was not being initialized)

Original committer: bryner%brianryner.com
Original revision: 1.23
Original date: 2005/11/30 07:35:28
This commit is contained in:
benjamin%smedbergs.us 2006-07-18 16:06:21 +00:00
parent 0ae87d62d1
commit b1aef18e54

View File

@ -1106,6 +1106,9 @@ nsNavHistory::ExecuteQueries(nsINavHistoryQuery** aQueries, PRUint32 aQueryCount
options); options);
NS_ENSURE_TRUE(result, NS_ERROR_OUT_OF_MEMORY); NS_ENSURE_TRUE(result, NS_ERROR_OUT_OF_MEMORY);
rv = result->Init();
NS_ENSURE_SUCCESS(rv, rv);
rv = nsNavBookmarks::GetBookmarksService()-> rv = nsNavBookmarks::GetBookmarksService()->
QueryFolderChildren(aQueries[0], options, result->GetTopLevel()); QueryFolderChildren(aQueries[0], options, result->GetTopLevel());