Add clang-tidy support for the OPK Linux port
Bug: 256230932 Change-Id: I4f46e285376101ff129c1fca5c80a259c70cc0c7
This commit is contained in:
@@ -207,7 +207,9 @@ OEMCryptoResult OemCertificate::GetPublicCertificate(
|
||||
return OEMCrypto_ERROR_SHORT_BUFFER;
|
||||
}
|
||||
*public_cert_length = cert_data.size();
|
||||
memcpy(public_cert, cert_data.data(), cert_data.size());
|
||||
if (public_cert != nullptr) {
|
||||
memcpy(public_cert, cert_data.data(), cert_data.size());
|
||||
}
|
||||
return OEMCrypto_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user