diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-13 07:11:06 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-13 07:11:06 -0700 |
commit | 64236388e467dd149d285accdee74897a2a7c5a1 (patch) | |
tree | a9841c99cfcca3eb4bcb6fbffafcac30585964c2 /qt-ui/divepicturewidget.cpp | |
parent | ed5a8059292c7743120fa4a089f92f4e84ee14b6 (diff) | |
download | subsurface-64236388e467dd149d285accdee74897a2a7c5a1.tar.gz |
Prevent using uninitialized variable
numberOfPictures was be read before it is written.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divepicturewidget.cpp')
-rw-r--r-- | qt-ui/divepicturewidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divepicturewidget.cpp b/qt-ui/divepicturewidget.cpp index a5ca95c0f..bf76d1144 100644 --- a/qt-ui/divepicturewidget.cpp +++ b/qt-ui/divepicturewidget.cpp @@ -14,7 +14,7 @@ DivePictureModel *DivePictureModel::instance() return self; } -DivePictureModel::DivePictureModel() +DivePictureModel::DivePictureModel() : numberOfPictures(0) { } |