summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-12-11 00:53:33 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-11 03:13:30 +0100
commit6c0865c532865c2a7ce7a7838a64f6b54394670f (patch)
tree68257dfa7b4a36f432e259ede81bbadb4e5d4e57 /divelist.c
parent25c3eb26dc844f02dc229fb51410eadbba81326b (diff)
downloadsubsurface-6c0865c532865c2a7ce7a7838a64f6b54394670f.tar.gz
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>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c
index 18435ca29..e0a70379b 100644
--- a/divelist.c
+++ b/divelist.c
@@ -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;