From 6c4cc2a93125b0a3d2c84eb8363db1bbb4d8ec8a Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Sat, 3 Jun 2023 10:41:15 -0500 Subject: [PATCH] tests/api.c: fix a likely-spurious maybe-uninitialized from gcc-11 -m32 (all-sp-m32) in test_wolfSSL_PEM_PrivateKey(). --- tests/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index ff722901f..fee5eb3e5 100644 --- a/tests/api.c +++ b/tests/api.c @@ -36409,7 +36409,7 @@ static int test_wolfSSL_PEM_PrivateKey(void) !defined(HAVE_USER_RSA) && !defined(NO_RSA) { XFILE f = XBADFILE; - wc_pem_password_cb* passwd_cb; + wc_pem_password_cb* passwd_cb = NULL; void* passwd_cb_userdata; SSL_CTX* ctx = NULL; char passwd[] = "bad password";