From: Tomas Hozza Date: Sun, 16 Dec 2012 06:30:55 +0000 (+1300) Subject: Fix uninitialized fields in IcapLogEntry X-Git-Tag: SQUID_3_4_0_1~434 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41027c4a56744174344cee35795ffb42b7a8ae80;p=thirdparty%2Fsquid.git Fix uninitialized fields in IcapLogEntry Detected by Coverity Scan. Issue 740507 --- diff --git a/src/AccessLogEntry.h b/src/AccessLogEntry.h index 853e58ffd8..4b5eb69227 100644 --- a/src/AccessLogEntry.h +++ b/src/AccessLogEntry.h @@ -243,7 +243,10 @@ public: class IcapLogEntry { public: - IcapLogEntry():bodyBytesRead(-1),request(NULL),reply(NULL),outcome(Adaptation::Icap::xoUnknown),trTime(0),ioTime(0),resStatus(HTTP_STATUS_NONE) {} + IcapLogEntry() : reqMethod(methodNone), bytesSent(0), bytesRead(0), + bodyBytesRead(-1), request(NULL), reply(NULL), + outcome(Adaptation::Icap::xoUnknown), trTime(0), + ioTime(0), processingTime(0), resStatus(HTTP_STATUS_NONE) {} Ip::Address hostAddr; ///< ICAP server IP address String serviceName; ///< ICAP service name