From 193a7d3a5667017b9dffb25603c732e3a4ad8bff Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 15 Oct 2018 07:54:06 -0400 Subject: [PATCH] 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 --- core/deco.c | 1 + 1 file changed, 1 insertion(+) 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)