summaryrefslogtreecommitdiffstats
path: root/core/save-xml.c
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-11-05 15:58:24 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-13 20:50:10 -0800
commitadbc71f9daf6778cf7402a18f9d954226bfceda4 (patch)
tree775ed19cf46165a707a5b69393fdabf37d3a939f /core/save-xml.c
parent1f8506ce645000bd158fcd3b2c9c799505c78bb2 (diff)
downloadsubsurface-adbc71f9daf6778cf7402a18f9d954226bfceda4.tar.gz
Init every struct sample with default values
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/save-xml.c')
-rw-r--r--core/save-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-xml.c b/core/save-xml.c
index 5bc4f5b38..fe1d73817 100644
--- a/core/save-xml.c
+++ b/core/save-xml.c
@@ -364,7 +364,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 };
/* Set up default pressure sensor indexes */
o2sensor = legacy_format_o2pressures(dive, dc);