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:
Dirk Hohndel 2014-06-13 07:11:06 -07:00
parent ed5a805929
commit 64236388e4

View file

@ -14,7 +14,7 @@ DivePictureModel *DivePictureModel::instance()
return self;
}
DivePictureModel::DivePictureModel()
DivePictureModel::DivePictureModel() : numberOfPictures(0)
{
}