diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-11 14:07:57 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-11 14:07:57 -0700 |
commit | 79c68367c64e89d0055d89730e1b780e3a8a9d50 (patch) | |
tree | cc9262d86f4f901cbe553c8000c599e14b226230 /qt-ui | |
parent | 2d7b02726e8501d5e45d3648768a3d2485e70f91 (diff) | |
download | subsurface-79c68367c64e89d0055d89730e1b780e3a8a9d50.tar.gz |
Fix uninitialized memory warning
It's kinda bogus, but since we add it to the Vector, we might as well
initialize all of it.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/diveplanner.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 0030a58cf..c96602e71 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -665,6 +665,7 @@ int DivePlannerPointsModel::addStop(int milimeters, int seconds, gasmix *gas_in, point.gasmix = gas; point.po2 = ccpoint; point.entered = entered; + point.next = NULL; divepoints.append(point); std::sort(divepoints.begin(), divepoints.end(), divePointsLessThan); endInsertRows(); |