From 9b2dda1d525555d236ebaff7cf6f658937383549 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Wed, 18 Mar 2009 23:22:33 +0000 Subject: Disk cache: A few minor fixes to make coverity happy. Review URL: http://codereview.chromium.org/48155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12028 0039d316-1c4b-4281-b951-d872f2087c98 --- net/disk_cache/entry_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/disk_cache/entry_impl.cc') diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc index 2e852a4..d82cb48 100644 --- a/net/disk_cache/entry_impl.cc +++ b/net/disk_cache/entry_impl.cc @@ -579,9 +579,9 @@ void EntryImpl::SetTimes(base::Time last_used, base::Time last_modified) { } bool EntryImpl::CreateDataBlock(int index, int size) { - Addr address(entry_.Data()->data_addr[index]); DCHECK(index >= 0 && index < NUM_STREAMS); + Addr address(entry_.Data()->data_addr[index]); if (!CreateBlock(size, &address)) return false; -- cgit v1.1