From af0b0612662b0449f322b5ab7849cb383005b9c7 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 15 Feb 2022 07:29:13 +0100 Subject: [PATCH] cleanup: fix uninitialized member issue Coverity warning: divedatapoint::minimum_gas was not initialized in DivePlannerPointsModel::addStop. I don't know the meaning of that member variable and therefore cannot tell if this was a real issue. Signed-off-by: Berthold Stoeger --- qt-models/diveplannermodel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 74b3eac3f..464c8ac9a 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -824,6 +824,7 @@ int DivePlannerPointsModel::addStop(int milimeters, int seconds, int cylinderid_ point.time = seconds; point.cylinderid = cylinderid; point.setpoint = ccpoint; + point.minimum_gas.mbar = 0; point.entered = entered; point.divemode = divemode; point.next = NULL;