From 31c0e4bf4bd1febb8a4ed089443ea9982d525622 Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Fri, 13 May 2022 13:44:23 -0600 Subject: [PATCH] Fix #23, Resolve fsw uninit var static analysis warnings --- fsw/src/sc_rtsrq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fsw/src/sc_rtsrq.c b/fsw/src/sc_rtsrq.c index 6d44c90..57efc88 100644 --- a/fsw/src/sc_rtsrq.c +++ b/fsw/src/sc_rtsrq.c @@ -599,6 +599,8 @@ void SC_AutoStartRts(uint16 RtsNumber) { SC_RtsCmd_t CmdPkt; /* the command packet to start an RTS */ + memset(&CmdPkt, 0, sizeof(CmdPkt)); + /* validate RTS ID */ if ((RtsNumber > 0) && (RtsNumber <= SC_NUMBER_OF_RTS)) {