From 3e2caa468e1740133f60067e9c686cd4149ef063 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Tue, 9 Jan 2018 08:43:59 +0100 Subject: cleanup: initilize local variable Silence compiler warning by correctly initializing local variable. Signed-off-by: Jan Mulder --- core/liquivision.c | 1 + 1 file changed, 1 insertion(+) 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++) { -- cgit v1.2.3-70-g09d2