Fix code health issues in the CDM identified by Coverity

Bug: 323331064
Change-Id: Ic87b32c1f7996bd5bb31e99a5fc117c59e94a42c
This commit is contained in:
Ian Benz
2024-01-30 21:12:56 +00:00
committed by Robert Shih
parent 93c19cd8de
commit 2fabef5bc9
5 changed files with 12 additions and 9 deletions

View File

@@ -115,7 +115,7 @@ OEMCryptoResult EntitlementKeySession::SelectKey(const std::string& key_id,
OEMCrypto_EntitledContentKeyObject EntitlementKeySession::MakeOecEntitledKey(
const CryptoKey& input_key, std::string& message) {
OEMCrypto_EntitledContentKeyObject output_key;
OEMCrypto_EntitledContentKeyObject output_key = {};
message.clear();
const std::string& entitlement_key_id = input_key.entitlement_key_id();