diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-11 09:37:12 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-11 09:37:12 -0700 |
commit | b70c877b3ce56155107791e3c38a4c9c4d915dff (patch) | |
tree | abc5ad9a780af0b457fced7cafc8899064442614 /planner.c | |
parent | b42df1dab67d2f90934e24f428475ae5f5f88e86 (diff) | |
download | subsurface-b70c877b3ce56155107791e3c38a4c9c4d915dff.tar.gz |
Deal with some uninitialized variable warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r-- | planner.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -119,7 +119,7 @@ int get_gasidx(struct dive *dive, struct gasmix *mix) double interpolate_transition(struct dive *dive, int t0, int t1, int d0, int d1, const struct gasmix *gasmix, int ppo2) { int j; - double tissue_tolerance; + double tissue_tolerance = 0.0; for (j = t0; j < t1; j++) { int depth = interpolate(d0, d1, j - t0, t1 - t0); @@ -518,7 +518,7 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool struct divedatapoint *dp = diveplan->dp; const char *empty = ""; bool gaschange = !plan_verbatim; - struct divedatapoint *nextdp; + struct divedatapoint *nextdp = NULL; disclaimer = translate("gettextFromC", "<b>DISCLAIMER / WARNING: THIS IS A NEW IMPLEMENTATION OF THE BUHLMANN " "ALGORITHM AND A DIVE PLANNER IMPLEMENTION BASED ON THAT WHICH HAS " @@ -684,7 +684,7 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, s int current_cylinder; unsigned int stopidx; int depth; - double tissue_tolerance; + double tissue_tolerance = 0.0; struct gaschanges *gaschanges = NULL; int gaschangenr; int *stoplevels = NULL; |