HDFS-9116. Suppress false positives from Valgrind on uninitialized variables in tests. Contributed by Haohui Mai.
This commit is contained in:
parent
9480c116ac
commit
6294141aeb
@ -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)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user