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:
Anton Lundin 2013-12-11 00:53:33 +01:00 committed by Dirk Hohndel
parent 25c3eb26dc
commit 6c0865c532

View file

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