mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-11 22:42:23 +02:00
timing.c: use memset to initialize the structure, from Gilles Peskine
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org> Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
This commit is contained in:
@@ -399,8 +399,9 @@ int mbedtls_timing_self_test(int verbose)
|
||||
int hardfail = 0;
|
||||
struct mbedtls_timing_hr_time hires;
|
||||
uint32_t a = 0, b = 0;
|
||||
mbedtls_timing_delay_context ctx = {};
|
||||
mbedtls_timing_delay_context ctx;
|
||||
|
||||
memset(ctx, 0, sizeof(ctx));
|
||||
if (verbose != 0) {
|
||||
mbedtls_printf(" TIMING tests note: will take some time!\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user