HDFS-9116. Suppress false positives from Valgrind on uninitialized variables in tests. Contributed by Haohui Mai.

This commit is contained in:
Haohui Mai 2015-09-21 11:34:50 -07:00 committed by James Clampffer
parent 9480c116ac
commit 6294141aeb
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ size_t DigestMD5Authenticator::NextToken(const std::string &payload, size_t off,
void DigestMD5Authenticator::GenerateCNonce() {
if (!TEST_mock_cnonce_) {
char buf[8];
char buf[8] = {0,};
RAND_pseudo_bytes(reinterpret_cast<unsigned char *>(buf), sizeof(buf));
cnonce_ = Base64Encode(std::string(buf, sizeof(buf)));
}