summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-25 14:17:30 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-26 19:27:03 -0700
commit484a50b6a817df60ab1650cf0739ade3a4928353 (patch)
tree7f677f3b38aea15faa99eb46f47246945a0cb4f8 /core
parent0d733747d1854614b750f1fe7afc26c75f5ecfe8 (diff)
downloadsubsurface-484a50b6a817df60ab1650cf0739ade3a4928353.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/uemis-downloader.c2
1 files changed, 1 insertions, 1 deletions
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")) {