diff --git a/library/x509_crt.c b/library/x509_crt.c index f9e36470cb..f2a252639f 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -2530,7 +2530,7 @@ static int x509_crt_verify_chain( int signature_is_good; unsigned self_cnt; mbedtls_x509_crt *cur_trust_ca = NULL; - mbedtls_x509_time now; + mbedtls_x509_time now = {}; #if defined(MBEDTLS_HAVE_TIME_DATE) if (mbedtls_x509_time_gmtime(mbedtls_time(NULL), &now) != 0) {