From 32e89123a296aba39ae50e10b141dc4b4820acc4 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 10 Jun 2014 00:18:00 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2