From 484a50b6a817df60ab1650cf0739ade3a4928353 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 25 Oct 2020 14:17:30 -0700 Subject: cleanup: initialize all members of weightsystem The auto_filled member was recently added and not initialized in the UEMIS downloader. Fixes CID 362080 Signed-off-by: Dirk Hohndel --- core/uemis-downloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c index 91c1e99e6..391a7af30 100644 --- a/core/uemis-downloader.c +++ b/core/uemis-downloader.c @@ -819,7 +819,7 @@ static void parse_tag(struct dive *dive, char *tag, char *val) } else if (!strcmp(tag, "altitude")) { uemis_get_index(val, &dive->dc.surface_pressure.mbar); } else if (!strcmp(tag, "f32Weight")) { - weightsystem_t ws; + weightsystem_t ws = empty_weightsystem; uemis_get_weight(val, &ws, dive->dc.diveid); add_cloned_weightsystem(&dive->weightsystems, ws); } else if (!strcmp(tag, "notes")) { -- cgit v1.2.3-70-g09d2