aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-06 10:51:53 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-06 10:51:53 -0700
commit66bb17e60281b92efb095daee13c2e44536f55c2 (patch)
tree5459827f14050195f3d73955fb851208bb8e7e7b
parent8092c0fdcd1c8eb3941fd8877a6ed8dbe1e74cd6 (diff)
downloadsubsurface-66bb17e60281b92efb095daee13c2e44536f55c2.tar.gz
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>
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
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);