summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libdivecomputer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index f7fff8285..309605e56 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -392,7 +392,7 @@ static int dive_cb(const unsigned char *data, unsigned int size,
device_data_t *devdata = userdata;
dc_datetime_t dt = { 0 };
struct tm tm;
- struct dive *dive;
+ struct dive *dive = NULL;
/* reset the deco / ndl data */
ndl = stoptime = stopdepth = 0;