From de837a02e8a80fa643936f7599d91911640685cb Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Sun, 15 Jan 2017 22:34:39 +0100 Subject: [PATCH] LP-402 systemmod: properly init task and callback info variables avoids random data for unused optional callbacks --- flight/modules/System/systemmod.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flight/modules/System/systemmod.c b/flight/modules/System/systemmod.c index a09a77fa3..b6fa8d89b 100644 --- a/flight/modules/System/systemmod.c +++ b/flight/modules/System/systemmod.c @@ -244,7 +244,9 @@ static void systemTask(__attribute__((unused)) void *parameters) #ifdef DIAG_TASKS TaskInfoData taskInfoData; + memset(&taskInfoData, 0, sizeof(TaskInfoData)); CallbackInfoData callbackInfoData; + memset(&callbackInfoData, 0, sizeof(CallbackInfoData)); #endif // Main system loop while (1) {