diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-06 10:51:53 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-06 10:51:53 -0700 |
commit | 66bb17e60281b92efb095daee13c2e44536f55c2 (patch) | |
tree | 5459827f14050195f3d73955fb851208bb8e7e7b /planner.c | |
parent | 8092c0fdcd1c8eb3941fd8877a6ed8dbe1e74cd6 (diff) | |
download | subsurface-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>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |