From cffcce77bbb9e65f72d0cde310a45a1e404a1e59 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 16 Dec 2021 21:15:07 -0800 Subject: [PATCH] core: avoid uninitialized data In an abundance of caution, make sure all fields are initialized. Fixes CID 350734 Signed-off-by: Dirk Hohndel --- core/import-csv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/import-csv.c b/core/import-csv.c index 84ab627c2..e648f6394 100644 --- a/core/import-csv.c +++ b/core/import-csv.c @@ -523,7 +523,7 @@ int parse_txt_file(const char *filename, const char *csv, struct dive_table *tab bool has_depth = false, has_setpoint = false, has_ndl = false; char *lineptr, *key, *value; unsigned int prev_time = 0; - cylinder_t cyl; + cylinder_t cyl = empty_cylinder; struct dive *dive; struct divecomputer *dc;