From 36050730c74c332375cc1c6e5deb03ef67e06229 Mon Sep 17 00:00:00 2001 From: Benjamin Kier Date: Thu, 30 May 2019 14:49:17 -0400 Subject: [PATCH] Fixed possibly undefined variable warnings by initializing variables to 0. --- library/x509_crl.c | 2 +- library/x509_crt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/x509_crl.c b/library/x509_crl.c index d1176fcef..371c446be 100644 --- a/library/x509_crl.c +++ b/library/x509_crl.c @@ -541,7 +541,7 @@ int mbedtls_x509_crl_parse( mbedtls_x509_crl *chain, const unsigned char *buf, s { #if defined(MBEDTLS_PEM_PARSE_C) int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; - size_t use_len; + size_t use_len = 0; mbedtls_pem_context pem; int is_pem = 0; diff --git a/library/x509_crt.c b/library/x509_crt.c index 38e69cc55..1e472303b 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -2538,7 +2538,7 @@ static int x509_crt_find_parent_in( { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_x509_crt *parent, *fallback_parent; - int signature_is_good, fallback_signature_is_good; + int signature_is_good = 0, fallback_signature_is_good; #if defined(MBEDTLS_ECDSA_C) && defined(MBEDTLS_ECP_RESTARTABLE) /* did we have something in progress? */