Benchmark, SM2: initialize vars for small stack

Variables may not be initialized in benchmark test when building for
small stack.
This commit is contained in:
Sean Parkinson
2024-05-01 13:52:46 +10:00
parent db6b1388ce
commit 840d1e9fac
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -10939,13 +10939,13 @@ exit:
#ifdef WOLFSSL_SM2
static void bench_sm2_MakeKey(int useDeviceID)
{
int ret = 0, i, times, count, pending = 0;
int ret = 0, i, times, count = 0, pending = 0;
int deviceID;
int keySize;
WC_DECLARE_ARRAY(genKey, ecc_key, BENCH_MAX_PENDING,
sizeof(ecc_key), HEAP_HINT);
char name[BENCH_ECC_NAME_SZ];
double start;
double start = 0;
const char**desc = bench_desc_words[lng_index];
DECLARE_MULTI_VALUE_STATS_VARS()