]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Made Coverity happier after f5e1794 (Peering for SslBump) (#387)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 5 Apr 2019 14:41:58 +0000 (14:41 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 7 Apr 2019 14:42:58 +0000 (14:42 +0000)
CID 1444393: Uninitialized members (UNINIT_CTOR)

From the current code point of view, this is a false positive because
the private constructor which lacked initialization was only used from
other constructors that do initialize httpStatus.

src/errorpage.h

index 9b7e6f2a1b4078a84f4babb9c7b3f9598cb09439..d8cf81d1ae644def60fad72ea172ca16c177dba2 100644 (file)
@@ -171,7 +171,7 @@ public:
     err_type type = ERR_NONE;
     int page_id = ERR_NONE;
     char *err_language = nullptr;
-    Http::StatusCode httpStatus;
+    Http::StatusCode httpStatus = Http::scNone;
 #if USE_AUTH
     Auth::UserRequest::Pointer auth_user_request;
 #endif