Skip to content

Commit 58f8f72

Browse files
Fix unused variable error
1 parent 8175a5a commit 58f8f72

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

wolfcrypt/src/pkcs7.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,7 +2196,6 @@ static int wc_PKCS7_BuildSignedAttributes(wc_PKCS7* pkcs7, ESD* esd,
21962196
#endif
21972197
word32 idx = 0;
21982198
word32 atrIdx = 0;
2199-
word32 cannedAttribsCount;
22002199

22012200
if (pkcs7 == NULL || esd == NULL || contentType == NULL ||
22022201
contentTypeOid == NULL || messageDigestOid == NULL ||
@@ -2219,8 +2218,6 @@ static int wc_PKCS7_BuildSignedAttributes(wc_PKCS7* pkcs7, ESD* esd,
22192218
return timeSz;
22202219
#endif
22212220

2222-
cannedAttribsCount = sizeof(cannedAttribs)/sizeof(PKCS7Attrib);
2223-
22242221
XMEMSET(&cannedAttribs[idx], 0, sizeof(cannedAttribs[idx]));
22252222

22262223
if ((pkcs7->defaultSignedAttribs & WOLFSSL_CONTENT_TYPE_ATTRIBUTE) ||

0 commit comments

Comments
 (0)