Fix uninitialized variable warning

Reading the code we should never be able to access breakcylinder without
having initialized it first, but this seems like a really cheap fix.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-08-06 10:51:53 -07:00
parent 8092c0fdcd
commit 66bb17e602

View file

@ -755,7 +755,7 @@ int plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool s
struct gasmix gas;
int o2time = 0;
int breaktime = -1;
int breakcylinder;
int breakcylinder = 0;
int error = 0;
set_gf(diveplan->gflow, diveplan->gfhigh, prefs.gf_low_at_maxdepth);