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:
Dirk Hohndel 2021-01-01 11:33:40 -08:00
parent 2a579987c2
commit b79114c5d0

View file

@ -114,7 +114,9 @@ DiveFilter *DiveFilter::instance()
return &self;
}
DiveFilter::DiveFilter() : diveSiteRefCount(0)
DiveFilter::DiveFilter() :
shown_dives(0),
diveSiteRefCount(0)
{
}