From f370446236b170517f9eb248d5421e0f0e22002e Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 15 Nov 2019 10:03:23 +0100 Subject: 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 --- core/import-csv.c | 1 + 1 file changed, 1 insertion(+) (limited to 'core') 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; -- cgit v1.2.3-70-g09d2