From: Amos Jeffries Date: Sun, 17 Feb 2013 02:30:31 +0000 (+1300) Subject: Fix uninitializd members in LeakFinder X-Git-Tag: SQUID_3_4_0_1~268 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e110d0135aecf8f47a087f65e855a02b8900d7d4;p=thirdparty%2Fsquid.git Fix uninitializd members in LeakFinder Detected by Coverity Scan. Issue 740521 --- diff --git a/src/LeakFinder.cc b/src/LeakFinder.cc index cffaa9101d..62fad1d209 100644 --- a/src/LeakFinder.cc +++ b/src/LeakFinder.cc @@ -45,15 +45,20 @@ /* ========================================================================= */ 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);