]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix uninitializd members in LeakFinder
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 17 Feb 2013 02:30:31 +0000 (15:30 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 17 Feb 2013 02:30:31 +0000 (15:30 +1300)
 Detected by Coverity Scan. Issue 740521

src/LeakFinder.cc

index cffaa9101d61206fe22e2e6fd84e63d6aec68369..62fad1d2090e342fb9fbf6e44be9ce63cbc4d9ee 100644 (file)
 /* ========================================================================= */
 
 LeakFinderPtr::LeakFinderPtr(void *p , const char *f, const int l) :
-        file(f), line(l), when(squid_curtime)
+        file(f),
+        line(l),
+        when(squid_curtime)
 {
+    // XXX: these bits should be done by hash_link()
     key = p;
     next = NULL;
 }
 
 /* ========================================================================= */
 
-LeakFinder::LeakFinder()
+LeakFinder::LeakFinder() :
+        count(0),
+        last_dump(0)
 {
     debugs(45, 3, "LeakFinder constructed");
     table = hash_create(cmp, 1 << 8, hash);