summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2018-10-15 07:54:06 -0400
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2018-10-15 21:21:05 +0200
commit193a7d3a5667017b9dffb25603c732e3a4ad8bff (patch)
treef5365a08d558fcf9ef83779cc8a85899b9bb7018 /core
parenta6e4de6b5e42a5581161f780cea093a882baf89b (diff)
downloadsubsurface-193a7d3a5667017b9dffb25603c732e3a4ad8bff.tar.gz
deco: make sure deco state is fully initialized
This shouldn't have caused any issues, but it made for valgrind noise. So fix it. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'core')
-rw-r--r--core/deco.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/deco.c b/core/deco.c
index f072a2a17..108d4189e 100644
--- a/core/deco.c
+++ b/core/deco.c
@@ -551,6 +551,7 @@ void clear_deco(struct deco_state *ds, double surface_pressure)
}
ds->gf_low_pressure_this_dive = surface_pressure + buehlmann_config.gf_low_position_min;
ds->max_ambient_pressure = 0.0;
+ ds->ci_pointing_to_guiding_tissue = -1;
}
void cache_deco_state(struct deco_state *src, struct deco_state **cached_datap)