mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 17:13:23 +00:00
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:
parent
28db9ede41
commit
f370446236
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue