summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 00:03:08 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 00:03:08 +0000
commit847ed6c5908798298dca7c826ddcab817fec61ce (patch)
tree35c5dcd66f932c36c94caec22020582e89a7137e /net/url_request
parent86cbd2abef20a01360a77dfd8593735cd1f0dbd4 (diff)
downloadchromium_src-847ed6c5908798298dca7c826ddcab817fec61ce.zip
chromium_src-847ed6c5908798298dca7c826ddcab817fec61ce.tar.gz
chromium_src-847ed6c5908798298dca7c826ddcab817fec61ce.tar.bz2
Bunch of Coverity fixes, rather minor severity.
TEST=none BUG=none Review URL: http://codereview.chromium.org/159862 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22559 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r--net/url_request/url_request_view_cache_job.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/url_request/url_request_view_cache_job.cc b/net/url_request/url_request_view_cache_job.cc
index 6fd4e23..4217f4f 100644
--- a/net/url_request/url_request_view_cache_job.cc
+++ b/net/url_request/url_request_view_cache_job.cc
@@ -66,7 +66,8 @@ static std::string FormatEntryDetails(disk_cache::Entry* entry) {
std::string result = EscapeForHTML(entry->GetKey());
net::HttpResponseInfo response;
- net::HttpCache::ReadResponseInfo(entry, &response);
+ if (!net::HttpCache::ReadResponseInfo(entry, &response))
+ return "error reading cache entry";
if (response.headers) {
result.append("<hr><pre>");