Initialize tissue_tolerance
So we can't return garbage. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
25c3eb26dc
commit
6c0865c532
@ -386,6 +386,7 @@ double init_decompression(struct dive *dive)
|
||||
timestamp_t when, lasttime = 0;
|
||||
bool deco_init = FALSE;
|
||||
double tissue_tolerance, surface_pressure;
|
||||
tissue_tolerance = surface_pressure = get_surface_pressure_in_mbar(dive, TRUE) / 1000.0;
|
||||
|
||||
if (!dive)
|
||||
return 0.0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user