Skip to content

Commit 804c4f2

Browse files
committed
Explicitly initialize some unit test variables to avoid warnings
1 parent 1226ded commit 804c4f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/api.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18322,9 +18322,9 @@ static int test_wc_PKCS7_GetEnvelopedDataKariRid(void)
1832218322
word32 ridSz = sizeof(rid);
1832318323
XFILE skiHexFile = XBADFILE;
1832418324
byte skiHex[256];
18325-
word32 cmsSz;
18326-
word32 skiHexSz;
18327-
size_t i;
18325+
word32 cmsSz = 0;
18326+
word32 skiHexSz = 0;
18327+
size_t i = 0;
1832818328
const word32 ridKeyIdentifierOffset = 4;
1832918329

1833018330
ExpectTrue((cmsFile = XFOPEN("./certs/test/kari-keyid-cms.msg", "rb"))

0 commit comments

Comments
 (0)