summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2019-11-15 10:03:23 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-16 12:34:30 -0800
commitf370446236b170517f9eb248d5421e0f0e22002e (patch)
tree408d98b4d21a428ea77ab8142eaa07f4c321d844
parent28db9ede41434990a0a19ca4b96ac58af3d15460 (diff)
downloadsubsurface-f370446236b170517f9eb248d5421e0f0e22002e.tar.gz
Initialize cylider field properly
This fixes another thing Coverty found. I am not 100% sure I understand the semantics of cylinder_t.manually_added but looking at other instance I guess true is the correct value for a cylinder from a csv file for a Poseidon rebreather. Fixes CID 350734 Signed-off-by: Robert C. Helling <helling@atdotde.de>
-rw-r--r--core/import-csv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/import-csv.c b/core/import-csv.c
index f34cb6802..0255b4f7d 100644
--- a/core/import-csv.c
+++ b/core/import-csv.c
@@ -543,6 +543,7 @@ int parse_txt_file(const char *filename, const char *csv, struct dive_table *tab
cyl.type.workingpressure.mbar = 200000;
cyl.type.description = "3l Mk6";
cyl.gasmix.o2.permille = 1000;
+ cyl.manually_added = true;
add_cloned_cylinder(&dive->cylinders, cyl);
cyl.cylinder_use = DILUENT;