mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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;
|
return &self;
|
||||||
}
|
}
|
||||||
|
|
||||||
DiveFilter::DiveFilter() : diveSiteRefCount(0)
|
DiveFilter::DiveFilter() :
|
||||||
|
shown_dives(0),
|
||||||
|
diveSiteRefCount(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue