Skip to content

Commit

Permalink
Merge pull request #1234 from skliper/fix1192-userdatalength_undefined
Browse files Browse the repository at this point in the history
Fix #1192, Initialize TotalMsgSize in CFE_SB_GetUserDataLength
  • Loading branch information
astrogeco authored Mar 24, 2021
2 parents e5d7e7e + d5bd7ca commit c9096a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sb/fsw/src/cfe_sb_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void *CFE_SB_GetUserData(CFE_MSG_Message_t *MsgPtr)
*/
size_t CFE_SB_GetUserDataLength(const CFE_MSG_Message_t *MsgPtr)
{
CFE_MSG_Size_t TotalMsgSize;
CFE_MSG_Size_t TotalMsgSize = 0;
size_t HdrSize;

if (MsgPtr == NULL)
Expand Down

0 comments on commit c9096a9

Please sign in to comment.