From 8f39e1bd880754fa4bd35bb6d77029a63823af14 Mon Sep 17 00:00:00 2001 From: Avi Date: Sun, 6 Nov 2022 20:34:47 +1000 Subject: [PATCH] Fix #63, Remove initializations causing Cppcheck errors --- fsw/src/sc_cmds.c | 2 +- fsw/src/sc_loads.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fsw/src/sc_cmds.c b/fsw/src/sc_cmds.c index 02ef935..5e3f7e4 100644 --- a/fsw/src/sc_cmds.c +++ b/fsw/src/sc_cmds.c @@ -59,7 +59,7 @@ void SC_ProcessAtpCmd(void) int32 EntryIndex; /* ATS entry location in table */ uint8 AtsIndex; /* ATS selection index */ uint32 CmdIndex; /* ATS command index */ - char TempAtsChar = ' '; + char TempAtsChar; int32 Result; bool AbortATS = false; SC_AtsEntry_t * EntryPtr; diff --git a/fsw/src/sc_loads.c b/fsw/src/sc_loads.c index 5e5e69b..f17baa0 100644 --- a/fsw/src/sc_loads.c +++ b/fsw/src/sc_loads.c @@ -384,9 +384,9 @@ bool SC_ParseRts(uint32 Buffer32[]) bool Done; bool Error; SC_RtsEntry_t *EntryPtr; - CFE_MSG_Size_t CmdSize = 0; - uint16 IndexDelta = 0; - CFE_SB_MsgId_t MessageID = CFE_SB_INVALID_MSG_ID; + CFE_MSG_Size_t CmdSize = 0; + uint16 IndexDelta; + CFE_SB_MsgId_t MessageID = CFE_SB_INVALID_MSG_ID; i = 0; Done = Error = false;