mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-27 12:16:07 +00:00
Fix compilation when -Werror=maybe-uninitialized is enabled
The `now` struct is not initialized and the compiler complains about it. Signed-off-by: Adrian Scillato <ascillato@gmail.com>
This commit is contained in:
parent
3c4166aef3
commit
a50cd0ffd8
@ -2523,7 +2523,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 = {0};
|
||||
|
||||
#if defined(MBEDTLS_HAVE_TIME_DATE)
|
||||
if (mbedtls_x509_time_gmtime(mbedtls_time(NULL), &now) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user