From: Amos Jeffries Date: Sun, 1 Nov 2009 10:49:33 +0000 (+1300) Subject: Fix constructor issues uncovered by CentOS X-Git-Tag: SQUID_3_2_0_1~630 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e10aa7b04b16fdc0c93733c6e7c82ef9939946b;p=thirdparty%2Fsquid.git Fix constructor issues uncovered by CentOS --- diff --git a/src/acl/Random.cc b/src/acl/Random.cc index e88d2f8e93..b43e0790c1 100644 --- a/src/acl/Random.cc +++ b/src/acl/Random.cc @@ -44,12 +44,12 @@ ACLRandom::clone() const return new ACLRandom(*this); } -ACLRandom::ACLRandom (char const *theClass) : data (0.0), class_ (theClass) +ACLRandom::ACLRandom(char const *theClass) : data(0.0), class_(theClass) { memset(pattern, 0 , sizeof(pattern)); } -ACLRandom::ACLRandom (ACLRandom const & old) : data (old.data), class_ (old.class_) +ACLRandom::ACLRandom(ACLRandom const & old) : data(old.data), class_(old.class_) { memcpy(pattern, old.pattern, sizeof(pattern)); }