mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
CryptoPkg/BaseCryptLib:Remove redundant init
CertCtx is used to be defined as a struct and ZeroMem is called to init this struct. But now CertCtx is defined as a point, so use ZeroMem (&CertCtx, sizeof (CertCtx)) is not correct any more. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com> Cc: Guomin Jiang <guomin.jiang@intel.com> Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
dd1e20b3c2
commit
6f340acfb1
@ -502,8 +502,6 @@ Pkcs7GetCertificatesList (
|
|||||||
OldBuf = NULL;
|
OldBuf = NULL;
|
||||||
Signers = NULL;
|
Signers = NULL;
|
||||||
|
|
||||||
ZeroMem (&CertCtx, sizeof (CertCtx));
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Parameter Checking
|
// Parameter Checking
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user