mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 03:43:24 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -386,6 +386,7 @@ double init_decompression(struct dive *dive)
|
||||||
timestamp_t when, lasttime = 0;
|
timestamp_t when, lasttime = 0;
|
||||||
bool deco_init = FALSE;
|
bool deco_init = FALSE;
|
||||||
double tissue_tolerance, surface_pressure;
|
double tissue_tolerance, surface_pressure;
|
||||||
|
tissue_tolerance = surface_pressure = get_surface_pressure_in_mbar(dive, TRUE) / 1000.0;
|
||||||
|
|
||||||
if (!dive)
|
if (!dive)
|
||||||
return 0.0;
|
return 0.0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue