summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 20:18:47 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 20:18:47 +0000
commit41eee1ece1a563274c1b984682eb6cc27a6b3181 (patch)
tree65a548721bce706e3a587685d21be714b8ebb8a7 /crypto
parent96745c284b0680beefd7c94fe061e74df6f0c812 (diff)
downloadchromium_src-41eee1ece1a563274c1b984682eb6cc27a6b3181.zip
chromium_src-41eee1ece1a563274c1b984682eb6cc27a6b3181.tar.gz
chromium_src-41eee1ece1a563274c1b984682eb6cc27a6b3181.tar.bz2
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
Diffstat (limited to 'crypto')
-rw-r--r--crypto/signature_creator_mac.cc2
-rw-r--r--crypto/signature_verifier_mac.cc1
2 files changed, 2 insertions, 1 deletions
diff --git a/crypto/signature_creator_mac.cc b/crypto/signature_creator_mac.cc
index 544c9fb..c31459f 100644
--- a/crypto/signature_creator_mac.cc
+++ b/crypto/signature_creator_mac.cc
@@ -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();
}
diff --git a/crypto/signature_verifier_mac.cc b/crypto/signature_verifier_mac.cc
index d442720..90e7196 100644
--- a/crypto/signature_verifier_mac.cc
+++ b/crypto/signature_verifier_mac.cc
@@ -12,6 +12,7 @@
namespace crypto {
SignatureVerifier::SignatureVerifier() : sig_handle_(0) {
+ memset(&public_key_, 0, sizeof(public_key_));
EnsureCSSMInit();
}