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>
This commit is contained in:
Linus Torvalds 2018-10-15 07:54:06 -04:00 committed by bstoeger
parent a6e4de6b5e
commit 193a7d3a56

View file

@ -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)