]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix uninitialized class members in StoreSearchHashIndex
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 3 Feb 2013 13:51:45 +0000 (06:51 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 3 Feb 2013 13:51:45 +0000 (06:51 -0700)
 Detected by Coverity Scan. Issue 740580

src/store_dir.cc

index 73da88265782f41d0a18c13b48b2a29ffe9934e7..0d3a30103dbd5e16ba631be758edf20a95970237 100644 (file)
@@ -1128,7 +1128,12 @@ StoreHashIndex::search(String const url, HttpRequest *)
 
 CBDATA_CLASS_INIT(StoreSearchHashIndex);
 
-StoreSearchHashIndex::StoreSearchHashIndex(RefCount<StoreHashIndex> aSwapDir) : sd(aSwapDir), _done (false), bucket (0)
+StoreSearchHashIndex::StoreSearchHashIndex(RefCount<StoreHashIndex> aSwapDir) :
+        sd(aSwapDir),
+        callback(NULL),
+        cbdata(NULL),
+        _done(false),
+        bucket(0)
 {}
 
 /* do not link