From 6c0865c532865c2a7ce7a7838a64f6b54394670f Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 11 Dec 2013 00:53:33 +0100 Subject: [PATCH] Initialize tissue_tolerance So we can't return garbage. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- divelist.c | 1 + 1 file changed, 1 insertion(+) 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;