]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix uninitialized fields in IcapLogEntry
authorTomas Hozza <thozza@redhat.com>
Sun, 16 Dec 2012 06:30:55 +0000 (19:30 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 16 Dec 2012 06:30:55 +0000 (19:30 +1300)
 Detected by Coverity Scan. Issue 740507

src/AccessLogEntry.h

index 853e58ffd84fcc7914d41267823955ac69c5e6f2..4b5eb6922713965dcd40fe4671af3987e86defc6 100644 (file)
@@ -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