Skip to content

Commit c9e67d5

Browse files
committed
Fix #502, Initialize Variable msg_size in cf_cfdp_sbintf.c
1 parent 7fa52e4 commit c9e67d5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

fsw/src/cf_cfdp_sbintf.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,16 @@ void CF_CFDP_ReceiveMessage(CF_Channel_t *chan)
187187
const int chan_num = (chan - CF_AppData.engine.channels);
188188
CFE_SB_Buffer_t *bufptr;
189189
CFE_MSG_Size_t msg_size;
190-
CFE_MSG_Type_t msg_type = CFE_MSG_Type_Invalid;
190+
CFE_MSG_Type_t msg_type;
191191

192192
CF_Logical_PduBuffer_t *ph;
193193

194194
for (; count < CF_AppData.config_table->chan[chan_num].rx_max_messages_per_wakeup; ++count)
195195
{
196+
197+
bufptr = NULL;
198+
msg_size = 0;
199+
msg_type = CFE_MSG_Type_Invalid;
196200
status = CFE_SB_ReceiveBuffer(&bufptr, chan->pipe, CFE_SB_POLL);
197201
if (status != CFE_SUCCESS)
198202
{

0 commit comments

Comments
 (0)