Skip to content

Commit

Permalink
Fix false positive error on gcc 9.4.0
Browse files Browse the repository at this point in the history
"error: ‘nameSz’ may be used uninitialized in this function", but it's not actually going to be used uninitialized.
  • Loading branch information
Andras Fekete committed Nov 6, 2024
1 parent b4f0789 commit cbf4f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cbf4f01

Please sign in to comment.