]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Completed initializer for constructors of Adaptation::Config and AsyncJob
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 14 Jan 2013 11:51:16 +0000 (04:51 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 14 Jan 2013 11:51:16 +0000 (04:51 -0700)
src/adaptation/Config.cc
src/adaptation/icap/Config.cc
src/base/AsyncJob.cc

index 0d3b86940f82c895c4e973cca81536bafe3e6536..e81447a09222687f4392d56e692a9f99c33712b1 100644 (file)
@@ -384,10 +384,10 @@ Adaptation::Config::DumpAccess(StoreEntry *entry, const char *name)
     }
 }
 
-Adaptation::Config::Config()
-{
-    // XXX: should we init members?
-}
+Adaptation::Config::Config() :
+        onoff(0), service_failure_limit(0), oldest_service_failure(0),
+        service_revival_delay(0)
+{}
 
 // XXX: this is called for ICAP and eCAP configs, but deals mostly
 // with global arrays shared by those individual configs
index 7fd6798e52636a6b18ae9777c32a72d9906abd76..b7879fbff2a8b0342ba529f969d79e6278029b74 100644 (file)
 
 Adaptation::Icap::Config Adaptation::Icap::TheConfig;
 
-Adaptation::Icap::Config::Config(): preview_enable(0), preview_size(0),
-        allow206_enable(0),
+Adaptation::Icap::Config::Config() :
+        preview_enable(0), preview_size(0), allow206_enable(0),
         connect_timeout_raw(0), io_timeout_raw(0), reuse_connections(0),
-        client_username_header(NULL), client_username_encode(0), repeat(NULL)
+        client_username_header(NULL), client_username_encode(0), repeat(NULL),
+        repeat_limit(0)
 {
 }
 
 Adaptation::Icap::Config::~Config()
 {
-    // TODO: delete client_username_header?
+    // no need to free client_username_header, it's done in cf_parser.cci:free_all
 }
 
 Adaptation::ServicePointer
index 04f688d082c34f6257e9612570cee8e16d4fbb49..8e5afaf77cd53a70742e0e549e7d07780d220502 100644 (file)
@@ -21,7 +21,8 @@ AsyncJob::Pointer AsyncJob::Start(AsyncJob *j)
     return job;
 }
 
-AsyncJob::AsyncJob(const char *aTypeName): typeName(aTypeName), inCall(NULL)
+AsyncJob::AsyncJob(const char *aTypeName) :
+        stopReason(NULL), typeName(aTypeName), inCall(NULL)
 {
     debugs(93,5, "AsyncJob constructed, this=" << this <<
            " type=" << typeName << " [" << id << ']');