Fix code health issues in OEMCrypto testbed identified by Coverity

Change-Id: I518f753d9d716415d2fe62d3bf54fc9f816f044c
This commit is contained in:
Ian Benz
2024-01-30 23:24:58 +00:00
committed by Robert Shih
parent 62ba0133cf
commit 858d66a12c

View File

@@ -159,7 +159,7 @@ std::string GetDeviceId() {
TEST_F(OEMCryptoClientTest, FreeUnallocatedSecureBufferNoFailure) {
Session s;
s.open();
OEMCrypto_DestBufferDesc output_descriptor;
OEMCrypto_DestBufferDesc output_descriptor = {};
int secure_fd = kHugeRandomNumber;
ASSERT_NE(OEMCrypto_SUCCESS,
OEMCrypto_FreeSecureBuffer(s.session_id(), &output_descriptor,