mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
a6e4de6b5e
commit
193a7d3a56
1 changed files with 1 additions and 0 deletions
|
@ -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->gf_low_pressure_this_dive = surface_pressure + buehlmann_config.gf_low_position_min;
|
||||||
ds->max_ambient_pressure = 0.0;
|
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)
|
void cache_deco_state(struct deco_state *src, struct deco_state **cached_datap)
|
||||||
|
|
Loading…
Add table
Reference in a new issue