diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-15 16:01:24 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-15 20:57:25 -0400 |
commit | a2028cd6ef4a52a18ec12d85c59b907f59715ce2 (patch) | |
tree | 5eda0052a1e71f0d3f1a79ab1403098e0fe323f8 /core/divesite.c | |
parent | 0e00d40ead4c8a87a0dbc685db4efda2b9d2205c (diff) | |
download | subsurface-a2028cd6ef4a52a18ec12d85c59b907f59715ce2.tar.gz |
deco: _really_ make sure the deco state is fully initialized
I incorrectly thought that 'ci_pointing_to_guiding_tissue' was the only
missing initialization, because that is the only one valgrind pointed at.
... that is, until I started looking at a few more dives, which showed
that there were other parts tht weren't initialized either, like
double tolerated_by_tissue[16];
double tissue_inertgas_saturation[16];
double crushing_onset_tension[16]; // total inert gas tension in the t* moment
so just make sure to clear the whole data structure, to avoid any random
behavior due to uninitialized deco state.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'core/divesite.c')
0 files changed, 0 insertions, 0 deletions