aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-24 14:59:07 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-25 13:58:03 -0700
commit572e2678a0c5e1a9c2a947e4a9a86f35cec125eb (patch)
treececdeb17f61f4d582d455f56047b14e2e532c1e4
parent8e330f297ed31bb13ff14110a58e93bed59dcea7 (diff)
downloadsubsurface-572e2678a0c5e1a9c2a947e4a9a86f35cec125eb.tar.gz
cleanup: initialize all fields
This doesn't appear likely to cause an issue, but also doesn't seem wrong. Fixes CID 350734 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/import-csv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/import-csv.c b/core/import-csv.c
index a815408a8..dda4b8b79 100644
--- a/core/import-csv.c
+++ b/core/import-csv.c
@@ -554,6 +554,8 @@ int parse_txt_file(const char *filename, const char *csv, struct dive_table *tab
cyl.type.description = "3l Mk6";
cyl.gasmix.o2.permille = 1000;
cyl.manually_added = true;
+ cyl.bestmix_o2 = 0;
+ cyl.bestmix_he = 0;
add_cloned_cylinder(&dive->cylinders, cyl);
cyl.cylinder_use = DILUENT;