wolfcrypt/test/test.c: fix skipped initialization warned by LLVM11 scan-build.

This commit is contained in:
Daniel Pouzzner
2020-12-02 13:31:23 -06:00
parent 3b8e7d546a
commit f47cdfcaed

View File

@@ -15648,12 +15648,14 @@ static int dsa_test(void)
XMEMCPY(tmp, dsa_key_der_2048, sizeof_dsa_key_der_2048);
bytes = sizeof_dsa_key_der_2048;
#else
{
XFILE file = XFOPEN(dsaKey, "rb");
if (!file)
ERROR_OUT(-8200, out);
bytes = (word32) XFREAD(tmp, 1, DSA_TEST_TMP_SIZE, file);
XFCLOSE(file);
}
#endif /* USE_CERT_BUFFERS */
ret = wc_InitSha_ex(&sha, HEAP_HINT, devId);