Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Unified Diff: net/disk_cache/sparse_control.cc

Issue 10833013: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_view_win.h ('k') | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/sparse_control.cc
diff --git a/net/disk_cache/sparse_control.cc b/net/disk_cache/sparse_control.cc
index d19b10e0aacb58e3e8c5281a0d963839ab89bbdc..19f5b69d8721a80b2638f1be71b72cd1d3ca5741 100644
--- a/net/disk_cache/sparse_control.cc
+++ b/net/disk_cache/sparse_control.cc
@@ -188,8 +188,19 @@ SparseControl::SparseControl(EntryImpl* entry)
: entry_(entry),
child_(NULL),
operation_(kNoOperation),
+ pending_(false),
+ finished_(false),
init_(false),
- child_map_(child_data_.bitmap, kNumSparseBits, kNumSparseBits / 32) {
+ range_found_(false),
+ abort_(false),
+ child_map_(child_data_.bitmap, kNumSparseBits, kNumSparseBits / 32),
+ offset_(0),
+ buf_len_(0),
+ child_offset_(0),
+ child_len_(0),
+ result_(0) {
+ memset(&sparse_header_, 0, sizeof(sparse_header_));
+ memset(&child_data_, 0, sizeof(child_data_));
}
SparseControl::~SparseControl() {
« no previous file with comments | « content/browser/web_contents/web_contents_view_win.h ('k') | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698