summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-10 10:48:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-10 11:21:12 +0000
commit02386ef8bcaeaca72eae56e15fe526aa9fc29b40 (patch)
tree5671ed23d880bd778d8be786c1b4b6e17a65dae2 /oox
parent4a8a30f941ea4324e6319db0d92e5290e9be225d (diff)
coverity#1079288 Uninitialized scalar field
Change-Id: I0fb9e547b73b563725eb8014f68224706df3c39d
Diffstat (limited to 'oox')
-rw-r--r--oox/source/crypto/Standard2007Engine.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/crypto/Standard2007Engine.cxx b/oox/source/crypto/Standard2007Engine.cxx
index 13697d26c2cb..29f1e148615d 100644
--- a/oox/source/crypto/Standard2007Engine.cxx
+++ b/oox/source/crypto/Standard2007Engine.cxx
@@ -51,8 +51,9 @@ EncryptionStandardHeader::EncryptionStandardHeader()
}
EncryptionVerifierAES::EncryptionVerifierAES()
+ : saltSize(SALT_LENGTH)
+ , encryptedVerifierHashSize(RTL_DIGEST_LENGTH_SHA1)
{
- saltSize = SALT_LENGTH;
memset(salt, 0, sizeof(salt));
memset(encryptedVerifier, 0, sizeof(encryptedVerifier));
memset(encryptedVerifierHash, 0, sizeof(encryptedVerifierHash));