Skip to content

Commit

Permalink
Fix #1192, Initialize TotalMsgSize in CFE_SB_GetUserDataLength
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Mar 17, 2021
1 parent 7f8e475 commit a07486d
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 @@ -119,7 +119,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 a07486d

Please sign in to comment.