summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-02 15:22:55 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-02 15:22:55 -0400
commitdde82a6ba416af03749bdb23b178d8a1d57bf200 (patch)
tree26fe4406eaffcdf51c07e261614ac5eea830e42f
parenta94c84d5982a10cd9adfd421aed41cf159dd3303 (diff)
downloadsubsurface-dde82a6ba416af03749bdb23b178d8a1d57bf200.tar.gz
Avoid potentially uninitialized member
Coverity CID 1325281 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/locationinformation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index 2cc554f81..4c11326f3 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -378,7 +378,8 @@ bool DiveLocationModel::setData(const QModelIndex &index, const QVariant &value,
DiveLocationLineEdit::DiveLocationLineEdit(QWidget *parent) : QLineEdit(parent),
proxy(new DiveLocationFilterProxyModel()),
model(new DiveLocationModel()),
- view(new DiveLocationListView())
+ view(new DiveLocationListView()),
+ currType(NO_DIVE_SITE)
{
currUuid = 0;
location_line_edit = this;