From cd0b9e6600b195152f8d8acfb81c44e7fc24e08c Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Sun, 6 Aug 2017 10:31:17 +0100 Subject: [PATCH] Fix potentially uninitialised pointer Newer compilers barf on an uninitialised pointer in src/security/Handshake.cc . Fix it. --- src/security/Handshake.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/security/Handshake.cc b/src/security/Handshake.cc index 7a073c574b..73c7a70d65 100644 --- a/src/security/Handshake.cc +++ b/src/security/Handshake.cc @@ -547,7 +547,7 @@ Security::HandshakeParser::ParseCertificate(const SBuf &raw, Security::CertPoint Must(x509Pos == x509Start + raw.length()); // no leftovers #else // workaround GCC -O3 error with unused variables. see bug 4663. - (void)pCert; + pCert = nullptr; debugs(83, 2, "TLS parsing is not supported without OpenSSL. " << raw); #endif } -- 2.47.2