mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 18:46:16 +00:00
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:
parent
06d7ba082e
commit
af0b061266
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue