remove uint from test case and put variable declaration at top of scope

This commit is contained in:
Jacob Barthelmeh
2022-04-29 10:40:44 -06:00
parent 38c01b9d9f
commit 9d7a02b28e

View File

@@ -34252,9 +34252,11 @@ static void test_wolfSSL_Tls13_Key_Logging_test(void)
#endif
/* check if the keylog file exists */
{
char buff[300] = {0};
int found[4] = {0};
int numfnd = 0;
int i;
fp = XFOPEN("./MyKeyLog.txt", "r");
@@ -34283,12 +34285,12 @@ static void test_wolfSSL_Tls13_Key_Logging_test(void)
}
}
XFCLOSE(fp);
int numfnd = 0;
for( uint i = 0; i < 4; i++) {
for (i = 0; i < 4; i++) {
if( found[i] != 0)
numfnd++;
}
AssertIntEQ(numfnd, 4);
}
printf(resultFmt, passed);