mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Prevent using uninitialized variable
numberOfPictures was be read before it is written. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ed5a805929
commit
64236388e4
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ DivePictureModel *DivePictureModel::instance()
|
|||
return self;
|
||||
}
|
||||
|
||||
DivePictureModel::DivePictureModel()
|
||||
DivePictureModel::DivePictureModel() : numberOfPictures(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue