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>
This commit is contained in:
parent
2d7b02726e
commit
79c68367c6
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user