summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-18 17:36:54 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-18 17:36:54 +0000
commitc3a7bceb912a3c934724a31871a84991cdcf74c3 (patch)
tree8aaf6abdb8f1193e3967019410d2da20e33d7fb2
parent9e8c2cc2dc661ca3b5275a2093281cf14ffaae2e (diff)
downloadchromium_src-c3a7bceb912a3c934724a31871a84991cdcf74c3.zip
chromium_src-c3a7bceb912a3c934724a31871a84991cdcf74c3.tar.gz
chromium_src-c3a7bceb912a3c934724a31871a84991cdcf74c3.tar.bz2
Coverity: Initialize data members in constructor.
CID=1634, 11587, 5007, 13234, 13398, 9295, 8294, 8285 BUG=none TEST=none Review URL: http://codereview.chromium.org/3817007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62945 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/tab_contents/tab_contents_view.cc2
-rw-r--r--media/audio/audio_output_controller.cc3
-rw-r--r--media/filters/audio_renderer_algorithm_ola.cc1
-rw-r--r--net/base/dnsrr_resolver.cc3
-rw-r--r--net/base/upload_data.cc1
-rw-r--r--net/disk_cache/file_posix.cc5
-rw-r--r--net/url_request/url_request_context.cc1
7 files changed, 12 insertions, 4 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view.cc b/chrome/browser/tab_contents/tab_contents_view.cc
index 9acb0bd..83eb7a4 100644
--- a/chrome/browser/tab_contents/tab_contents_view.cc
+++ b/chrome/browser/tab_contents/tab_contents_view.cc
@@ -117,7 +117,7 @@ bool TabContentsView::ShouldDrawDropShadow() {
return false;
}
-TabContentsView::TabContentsView() {}
+TabContentsView::TabContentsView() : tab_contents_(NULL) {}
void TabContentsView::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
if (tab_contents_->delegate())
diff --git a/media/audio/audio_output_controller.cc b/media/audio/audio_output_controller.cc
index 12bcf72..a6317be 100644
--- a/media/audio/audio_output_controller.cc
+++ b/media/audio/audio_output_controller.cc
@@ -39,7 +39,8 @@ AudioOutputController::AudioOutputController(EventHandler* handler,
state_(kEmpty),
buffer_(0, capacity),
pending_request_(false),
- sync_reader_(sync_reader) {
+ sync_reader_(sync_reader),
+ message_loop_(NULL) {
}
AudioOutputController::~AudioOutputController() {
diff --git a/media/filters/audio_renderer_algorithm_ola.cc b/media/filters/audio_renderer_algorithm_ola.cc
index 2d47c91..db0f348 100644
--- a/media/filters/audio_renderer_algorithm_ola.cc
+++ b/media/filters/audio_renderer_algorithm_ola.cc
@@ -24,6 +24,7 @@ const float kMaxRate = 4.0f;
AudioRendererAlgorithmOLA::AudioRendererAlgorithmOLA()
: input_step_(0),
output_step_(0),
+ crossfade_size_(0),
window_size_(0) {
}
diff --git a/net/base/dnsrr_resolver.cc b/net/base/dnsrr_resolver.cc
index b4c361f..04a1008 100644
--- a/net/base/dnsrr_resolver.cc
+++ b/net/base/dnsrr_resolver.cc
@@ -137,7 +137,8 @@ class RRResolverWorker {
flags_(flags),
origin_loop_(MessageLoop::current()),
dnsrr_resolver_(dnsrr_resolver),
- canceled_(false) {
+ canceled_(false),
+ result_(ERR_UNEXPECTED) {
}
bool Start() {
diff --git a/net/base/upload_data.cc b/net/base/upload_data.cc
index 774dc5c..664285d 100644
--- a/net/base/upload_data.cc
+++ b/net/base/upload_data.cc
@@ -17,6 +17,7 @@ UploadData::Element::Element()
file_range_length_(kuint64max),
override_content_length_(false),
content_length_computed_(false),
+ content_length_(-1),
file_stream_(NULL) {
}
diff --git a/net/disk_cache/file_posix.cc b/net/disk_cache/file_posix.cc
index 44d74e7..9d810c7 100644
--- a/net/disk_cache/file_posix.cc
+++ b/net/disk_cache/file_posix.cc
@@ -250,7 +250,10 @@ void InFlightIO::InvokeCallback(BackgroundIO* operation, bool cancel_task) {
namespace disk_cache {
File::File(base::PlatformFile file)
- : init_(true), mixed_(true), platform_file_(file) {
+ : init_(true),
+ mixed_(true),
+ platform_file_(file),
+ sync_platform_file_(base::kInvalidPlatformFileValue) {
}
bool File::Init(const FilePath& name) {
diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc
index 518d43a..137901d 100644
--- a/net/url_request/url_request_context.cc
+++ b/net/url_request/url_request_context.cc
@@ -10,6 +10,7 @@
URLRequestContext::URLRequestContext()
: net_log_(NULL),
+ host_resolver_(NULL),
dnsrr_resolver_(NULL),
http_transaction_factory_(NULL),
ftp_transaction_factory_(NULL),