From: Amos Jeffries Date: Sun, 3 Feb 2013 13:51:45 +0000 (-0700) Subject: Fix uninitialized class members in StoreSearchHashIndex X-Git-Tag: SQUID_3_4_0_1~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fd5ccc387115e83b3399c2696682e2c1273e049;p=thirdparty%2Fsquid.git Fix uninitialized class members in StoreSearchHashIndex Detected by Coverity Scan. Issue 740580 --- diff --git a/src/store_dir.cc b/src/store_dir.cc index 73da882657..0d3a30103d 100644 --- a/src/store_dir.cc +++ b/src/store_dir.cc @@ -1128,7 +1128,12 @@ StoreHashIndex::search(String const url, HttpRequest *) CBDATA_CLASS_INIT(StoreSearchHashIndex); -StoreSearchHashIndex::StoreSearchHashIndex(RefCount aSwapDir) : sd(aSwapDir), _done (false), bucket (0) +StoreSearchHashIndex::StoreSearchHashIndex(RefCount aSwapDir) : + sd(aSwapDir), + callback(NULL), + cbdata(NULL), + _done(false), + bucket(0) {} /* do not link