summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-06-10 00:18:00 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-09 16:55:53 -0700
commit32e89123a296aba39ae50e10b141dc4b4820acc4 (patch)
tree70d08bb56b318cddd3a429daa72ca915a9c85782 /planner.c
parent8b3ebaa8a3b88b0ff0afbaf1c97aca0cefbb682e (diff)
downloadsubsurface-32e89123a296aba39ae50e10b141dc4b4820acc4.tar.gz
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>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 8cc9b6f85..c34b59ac5 100644
--- a/planner.c
+++ b/planner.c
@@ -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;