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>
This commit is contained in:
Robert C. Helling 2019-11-15 10:03:23 +01:00 committed by Dirk Hohndel
parent 28db9ede41
commit f370446236

View file

@ -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;