From 04cc51a6cf11996b3443fbbac261072b10eb0cd4 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sun, 1 Dec 2013 16:19:30 +0100 Subject: Core/Misc: Fix some static analysis issues Fix some static analysis issues, mostly false positive about fields not initialized in the constructor. It's good practice anyway to always initialize them. --- src/server/shared/Cryptography/HMACSHA1.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/server/shared/Cryptography/HMACSHA1.cpp') diff --git a/src/server/shared/Cryptography/HMACSHA1.cpp b/src/server/shared/Cryptography/HMACSHA1.cpp index c6c49f14a8e..2585fa64ea1 100644 --- a/src/server/shared/Cryptography/HMACSHA1.cpp +++ b/src/server/shared/Cryptography/HMACSHA1.cpp @@ -24,6 +24,7 @@ HmacHash::HmacHash(uint32 len, uint8 *seed) { HMAC_CTX_init(&m_ctx); HMAC_Init_ex(&m_ctx, seed, len, EVP_sha1(), NULL); + memset(m_digest, 0, sizeof(m_digest)); } HmacHash::~HmacHash() -- cgit v1.2.3