mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
cleanup: ensure DiveFilter is consistent when created
Otherwise we might access an uninitialized member. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2a579987c2
commit
b79114c5d0
1 changed files with 3 additions and 1 deletions
|
@ -114,7 +114,9 @@ DiveFilter *DiveFilter::instance()
|
|||
return &self;
|
||||
}
|
||||
|
||||
DiveFilter::DiveFilter() : diveSiteRefCount(0)
|
||||
DiveFilter::DiveFilter() :
|
||||
shown_dives(0),
|
||||
diveSiteRefCount(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue