diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-08-28 15:28:57 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-08-28 15:30:50 +0200 |
| commit | 8bdd2877c4f959b0c4b93f3d9d1f465fb4960f3f (patch) | |
| tree | ef7fed85ea38dde8929f15e02ff39c7e7b40da4a /src/bloom.h | |
| parent | qt/splashscreen: #include version.h (diff) | |
| download | discoin-8bdd2877c4f959b0c4b93f3d9d1f465fb4960f3f.tar.xz discoin-8bdd2877c4f959b0c4b93f3d9d1f465fb4960f3f.zip | |
Fix a few "Uninitialized scalar field" warnings
Fix a few warnings reported by Coverity.
None of these is critical, but making sure that class fields are
initialized can avoid heisenbugs.
Diffstat (limited to 'src/bloom.h')
| -rw-r--r-- | src/bloom.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bloom.h b/src/bloom.h index d0caf9e9f..54d16d712 100644 --- a/src/bloom.h +++ b/src/bloom.h @@ -60,7 +60,7 @@ public: // It should generally always be a random value (and is largely only exposed for unit testing) // nFlags should be one of the BLOOM_UPDATE_* enums (not _MASK) CBloomFilter(unsigned int nElements, double nFPRate, unsigned int nTweak, unsigned char nFlagsIn); - CBloomFilter() : isFull(true) {} + CBloomFilter() : isFull(true), isEmpty(false), nHashFuncs(0), nTweak(0), nFlags(0) {} IMPLEMENT_SERIALIZE ( |