mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Avoid possible uninitialized memory read
This looks like possibly a false positive in the Coverity scan, but we can always assume that the first point of the dive plan has been entered by the user. Coverity CID 1325285 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5a6aaec490
commit
12c83b744e
1 changed files with 1 additions and 1 deletions
|
@ -540,7 +540,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool
|
|||
struct divedatapoint *dp = diveplan->dp;
|
||||
bool gaschange_after = !plan_verbatim;
|
||||
bool gaschange_before;
|
||||
bool lastentered;
|
||||
bool lastentered = true;
|
||||
struct divedatapoint *nextdp = NULL;
|
||||
|
||||
plan_verbatim = prefs.verbatim_plan;
|
||||
|
|
Loading…
Reference in a new issue