mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
0d733747d1
commit
484a50b6a8
1 changed files with 1 additions and 1 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Reference in a new issue