From 79c68367c64e89d0055d89730e1b780e3a8a9d50 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 11 Jun 2014 14:07:57 -0700 Subject: 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 --- qt-ui/diveplanner.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/diveplanner.cpp') 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(); -- cgit v1.2.3-70-g09d2