cleanup: initilize local variable

Silence compiler warning by correctly initializing local variable.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2018-01-09 08:43:59 +01:00
parent 0bb1a82127
commit 3e2caa468e

View file

@ -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++) {