0

Coverity: Initialize member variables.

CID=13721,14709,16392,17192,17585
BUG=none
TEST=none

R=kmadhusu@chromium.org

Review URL: http://codereview.chromium.org/7206066

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90086 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
jhawkins@chromium.org
2011-06-22 20:18:47 +00:00
parent 96745c284b
commit 41eee1ece1
5 changed files with 6 additions and 1 deletions

@ -37,7 +37,7 @@ SignatureCreator* SignatureCreator::Create(RSAPrivateKey* key) {
return result.release();
}
SignatureCreator::SignatureCreator() : sig_handle_(0) {
SignatureCreator::SignatureCreator() : key_(NULL), sig_handle_(0) {
EnsureCSSMInit();
}

@ -12,6 +12,7 @@
namespace crypto {
SignatureVerifier::SignatureVerifier() : sig_handle_(0) {
memset(&public_key_, 0, sizeof(public_key_));
EnsureCSSMInit();
}

@ -36,6 +36,7 @@ PCMQueueInAudioInputStream::PCMQueueInAudioInputStream(
format_.mFramesPerPacket = 1;
format_.mBytesPerPacket = (params.bits_per_sample * params.channels) / 8;
format_.mBytesPerFrame = format_.mBytesPerPacket;
format_.mReserved = 0;
buffer_size_bytes_ = params.GetPacketSize();
}

@ -47,6 +47,7 @@ AUAudioOutputStream::AUAudioOutputStream(
format_.mFramesPerPacket = 1;
format_.mBytesPerPacket = (format_.mBitsPerChannel * params.channels) / 8;
format_.mBytesPerFrame = format_.mBytesPerPacket;
format_.mReserved = 0;
// Calculate the number of sample frames per callback.
number_of_frames_ = params.GetPacketSize() / format_.mBytesPerPacket;

@ -67,7 +67,9 @@ PCMQueueOutAudioOutputStream::PCMQueueOutAudioOutputStream(
format_.mFramesPerPacket = 1;
format_.mBytesPerPacket = (format_.mBitsPerChannel * params.channels) / 8;
format_.mBytesPerFrame = format_.mBytesPerPacket;
format_.mReserved = 0;
memset(buffer_, 0, sizeof(buffer_));
memset(core_channel_orderings_, 0, sizeof(core_channel_orderings_));
memset(channel_remap_, 0, sizeof(channel_remap_));