summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-09 08:43:59 +0100
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-01-10 16:45:42 +0100
commit3e2caa468e1740133f60067e9c686cd4149ef063 (patch)
tree4f2c721f8f36d7ed2f0d6d00c4d923e25ddea405 /core
parent0bb1a82127cd2510a8339ab4a23a42bb06e64590 (diff)
downloadsubsurface-3e2caa468e1740133f60067e9c686cd4149ef063.tar.gz
cleanup: initilize local variable
Silence compiler warning by correctly initializing local variable. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core')
-rw-r--r--core/liquivision.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/liquivision.c b/core/liquivision.c
index fadde50a3..7fc027af5 100644
--- a/core/liquivision.c
+++ b/core/liquivision.c
@@ -310,6 +310,7 @@ static void parse_dives (int log_version, const unsigned char *buf, unsigned int
unsigned int event_code, d = 0, e;
struct lv_event event;
+ memset(&event, 0, sizeof(event));
// Loop through events
for (e = 0; e < ps_count; e++) {