diff options
-rw-r--r-- | qt-models/diveplannermodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 32231ecca..b2d71d1ef 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -903,6 +903,7 @@ void DivePlannerPointsModel::createTemporaryPlan() struct deco_state plan_deco_state; struct diveplan *plan_copy; + memset(&plan_deco_state, 0, sizeof(struct deco_state)); plan(&plan_deco_state, &diveplan, &displayed_dive, DECOTIMESTEP, stoptable, &cache, isPlanner(), false); plan_copy = (struct diveplan *)malloc(sizeof(struct diveplan)); lock_planner(); |