diff --git a/Library/OcAppleImg4Lib/libDERImg4/DER_Img4Manifest.c b/Library/OcAppleImg4Lib/libDERImg4/DER_Img4Manifest.c index 74b267ef..95fea380 100644 --- a/Library/OcAppleImg4Lib/libDERImg4/DER_Img4Manifest.c +++ b/Library/OcAppleImg4Lib/libDERImg4/DER_Img4Manifest.c @@ -606,11 +606,15 @@ DERImg4FindDecodeProperty ( DERImg4Property *Property ) { + STATIC CONST DERItemSpec PropertyItemSpecTpl[] = DER_IMG4_PROPERTY_SPEC_INIT; + DERReturn DerResult; DERItem PropItem; uint32_t CurPropTag; + DERItemSpec PropertyItemSpec[ARRAY_SIZE (PropertyItemSpecTpl)]; + + CopyMem (PropertyItemSpec, PropertyItemSpecTpl, sizeof (PropertyItemSpecTpl)); - DERItemSpec PropertyItemSpec[] = DER_IMG4_PROPERTY_SPEC_INIT; PropertyItemSpec[1].tag = PropValueTag; assert (PropSetItem != NULL);