From aab90d7a252da330d6148e5f5c545da062c5d694 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Fri, 24 Apr 2026 16:24:44 -0500 Subject: [PATCH] tests/api.c: fix false-positive -Wmaybe-uninitialized in test_wolfSSL_clear_secure_renegotiation() with --enable-all CFLAGS=-Og. --- tests/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index 618398f3c3..05a7688d7f 100644 --- a/tests/api.c +++ b/tests/api.c @@ -10304,9 +10304,9 @@ static int test_wolfSSL_clear_secure_renegotiation(void) ExpectIntEQ(WOLFSSL_SUCCESS, wolfSSL_clear(ssl)); if (EXPECT_SUCCESS()) { support = wolfSSL_SSL_get_secure_renegotiation_support(ssl); + ExpectNull(ssl->secure_renegotiation); + ExpectIntEQ(WOLFSSL_FAILURE, support); } - ExpectNull(ssl->secure_renegotiation); - ExpectIntEQ(WOLFSSL_FAILURE, support); wolfSSL_free(ssl); wolfSSL_CTX_free(ctx);