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
@ -14,7 +14,7 @@ DivePictureModel *DivePictureModel::instance()
|
||||
return self;
|
||||
}
|
||||
|
||||
DivePictureModel::DivePictureModel()
|
||||
DivePictureModel::DivePictureModel() : numberOfPictures(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user