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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-02-15 07:29:13 +01:00 committed by Dirk Hohndel
parent 06d7ba082e
commit af0b061266

View file

@ -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;