mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Init every struct sample with default values
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
1f8506ce64
commit
adbc71f9da
4 changed files with 9 additions and 4 deletions
|
@ -350,7 +350,7 @@ static void save_samples(struct membuffer *b, struct dive *dive, struct divecomp
|
|||
int nr;
|
||||
int o2sensor;
|
||||
struct sample *s;
|
||||
struct sample dummy = {};
|
||||
struct sample dummy = { .bearing.degrees = -1, .ndl.seconds = -1 };
|
||||
|
||||
/* Is this a CCR dive with the old-style "o2pressure" sensor? */
|
||||
o2sensor = legacy_format_o2pressures(dive, dc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue