aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-13 07:11:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-13 07:11:06 -0700
commit64236388e467dd149d285accdee74897a2a7c5a1 (patch)
treea9841c99cfcca3eb4bcb6fbffafcac30585964c2 /qt-ui
parented5a8059292c7743120fa4a089f92f4e84ee14b6 (diff)
downloadsubsurface-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')
-rw-r--r--qt-ui/divepicturewidget.cpp2
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)
{
}