diff options
author | 2021-01-01 11:33:40 -0800 | |
---|---|---|
committer | 2021-01-01 12:38:50 -0800 | |
commit | b79114c5d05a4f7c5ea387e90cd17243bb7ef7c5 (patch) | |
tree | 43a7680d09332f916846b7422090bf586858ed24 /core | |
parent | 2a579987c2a4ffc85ee5867492381bd57aebd731 (diff) | |
download | subsurface-b79114c5d05a4f7c5ea387e90cd17243bb7ef7c5.tar.gz |
cleanup: ensure DiveFilter is consistent when created
Otherwise we might access an uninitialized member.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/divefilter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/divefilter.cpp b/core/divefilter.cpp index 87b5846f8..3ea69a0ba 100644 --- a/core/divefilter.cpp +++ b/core/divefilter.cpp @@ -114,7 +114,9 @@ DiveFilter *DiveFilter::instance() return &self; } -DiveFilter::DiveFilter() : diveSiteRefCount(0) +DiveFilter::DiveFilter() : + shown_dives(0), + diveSiteRefCount(0) { } |