From d4d6346ee5e7a31bcc4cf307bcbc2d5fcbd82c93 Mon Sep 17 00:00:00 2001 From: MJSPollard Date: Thu, 13 Sep 2018 08:47:01 -0600 Subject: [PATCH] fixed unused variable error --- wolfcrypt/benchmark/benchmark.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index 759269bea..356e46f76 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -953,7 +953,8 @@ static void bench_stats_asym_finish(const char* algo, int strength, /* format and print to terminal */ if (csv_format == 1) { - if (csv_header_count == 0) { + /* only print out header once */ + if (csv_header_count == 1) { printf("\nAsymmetric Ciphers:\n\n"); printf("Algorithm,avg ms,ops/sec,\n"); csv_header_count++; @@ -5021,6 +5022,7 @@ int main(int argc, char** argv) #endif else if (string_matches(argv[1], "-csv")) { csv_format = 1; + csv_header_count = 1; } else if (argv[1][0] == '-') { optMatched = 0;