From cbf4f014cd3569ed0d42d589c58ffaad83fe999a Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Wed, 6 Nov 2024 14:54:02 -0500 Subject: [PATCH] Fix false positive error on gcc 9.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "error: ‘nameSz’ may be used uninitialized in this function", but it's not actually going to be used uninitialized. --- tests/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 91ef127b4b..106740cd04 100644 --- a/tests/api.c +++ b/tests/api.c @@ -61436,7 +61436,7 @@ static int test_wolfSSL_X509_NID(void) #if (defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)) && \ !defined(NO_RSA) && defined(USE_CERT_BUFFERS_2048) && !defined(NO_ASN) int sigType; - int nameSz; + int nameSz = 0; X509* cert = NULL; EVP_PKEY* pubKeyTmp = NULL;