diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2019-03-04 19:52:50 +0100 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2019-03-05 09:08:04 +0100 |
commit | 82c3b3f8e07f0572327275841333256fa3e679e3 (patch) | |
tree | feaf3071240ff352eb5944e966da4a7c96e62af2 /src/blockfilter.cpp | |
parent | 2d46f1be0c3c8b7287aa1f62bb1f5b4a8d00ff6e (diff) | |
download | bitcoin-82c3b3f8e07f0572327275841333256fa3e679e3.tar.xz |
Remove sharp edge (uninitialized m_filter_type) when using the compiler-generated constructor for BlockFilter
Diffstat (limited to 'src/blockfilter.cpp')
-rw-r--r-- | src/blockfilter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blockfilter.cpp b/src/blockfilter.cpp index bcf24047ff..e15213c552 100644 --- a/src/blockfilter.cpp +++ b/src/blockfilter.cpp @@ -251,6 +251,8 @@ bool BlockFilter::BuildParams(GCSFilter::Params& params) const params.m_P = BASIC_FILTER_P; params.m_M = BASIC_FILTER_M; return true; + case BlockFilterType::INVALID: + return false; } return false; |