mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:13:24 +00:00
planner.c: prevent an uninitialized warning
"warning: 'bottom_time' may be used uninitialized in this function" we set it to zero for now. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8b3ebaa8a3
commit
32e89123a2
1 changed files with 1 additions and 1 deletions
|
@ -692,7 +692,7 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, s
|
|||
bool stopping = false;
|
||||
bool clear_to_ascend;
|
||||
int clock, previous_point_time;
|
||||
int avg_depth, bottom_time;
|
||||
int avg_depth, bottom_time = 0;
|
||||
int last_ascend_rate;
|
||||
int best_first_ascend_cylinder;
|
||||
struct gasmix gas;
|
||||
|
|
Loading…
Add table
Reference in a new issue