diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-06-10 00:18:00 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-09 16:55:53 -0700 |
commit | 32e89123a296aba39ae50e10b141dc4b4820acc4 (patch) | |
tree | 70d08bb56b318cddd3a429daa72ca915a9c85782 /planner.c | |
parent | 8b3ebaa8a3b88b0ff0afbaf1c97aca0cefbb682e (diff) | |
download | subsurface-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.c | 2 |
1 files changed, 1 insertions, 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; |