summaryrefslogtreecommitdiffstats
path: root/core/uemis-downloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/uemis-downloader.c')
-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")) {