From 66bb17e60281b92efb095daee13c2e44536f55c2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 6 Aug 2014 10:51:53 -0700 Subject: [PATCH] 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 --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index 60751fcfd..ea180fb0a 100644 --- a/planner.c +++ b/planner.c @@ -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);