]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Made Coverity happier after e863656 (timestamps for FATAL) (#374)
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 24 Feb 2019 09:01:53 +0000 (09:01 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 24 Feb 2019 09:01:56 +0000 (09:01 +0000)
CID 1441976: Uninitialized scalar field (UNINIT_CTOR)

The forgotten stub data member is currently unused.

src/tests/stub_debug.cc

index ba62bc8fa79660c7ff5a8c4bee3d26122be4bfb8..73c68885add2a266a261d1b4a1c9622ac6c90a1d 100644 (file)
@@ -103,7 +103,8 @@ Debug::Context *Debug::Current = nullptr;
 Debug::Context::Context(const int aSection, const int aLevel):
     level(aLevel),
     sectionLevel(Levels[aSection]),
-    upper(Current)
+    upper(Current),
+    forceAlert(false)
 {
     buf.setf(std::ios::fixed);
     buf.precision(2);