From 16b0042dc6d56c046c0bf74ff62463a339744599 Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Thu, 4 Jul 2024 13:01:46 +0200 Subject: [PATCH] Use non static data member initialization on errorcode in QSslContext Address the "A constructor must initialize all data members of the class" warning. Found by an Axivion scan. Task-number: QTBUG-125026 Pick-to: 6.7 6.5 Change-Id: I46a7dd358d107670846fa35c0b02d2591258438d Reviewed-by: Marc Mutz (cherry picked from commit 69bf95e2e05fb1ded0d74a7ebc5fa112e0854a5c) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/tls/openssl/qsslcontext_openssl_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/tls/openssl/qsslcontext_openssl_p.h b/src/plugins/tls/openssl/qsslcontext_openssl_p.h index 64ff45d064b..ccc4cb81e00 100644 --- a/src/plugins/tls/openssl/qsslcontext_openssl_p.h +++ b/src/plugins/tls/openssl/qsslcontext_openssl_p.h @@ -81,7 +81,7 @@ private: SSL_SESSION *session; QByteArray m_sessionASN1; int m_sessionTicketLifeTimeHint; - QSslError::SslError errorCode; + QSslError::SslError errorCode = {}; QString errorStr; QSslConfiguration sslConfiguration; #ifndef OPENSSL_NO_NEXTPROTONEG